diff options
author | Gregory Farnum <greg@gregs42.com> | 2013-04-12 14:21:42 -0700 |
---|---|---|
committer | Gregory Farnum <greg@gregs42.com> | 2013-04-12 14:21:42 -0700 |
commit | 98e4c86474fc63a2184cfd7088f9637a2b65f428 (patch) | |
tree | c9a03b9ea9594d71e4977aa8194857edea3b1722 | |
parent | 87ff4af1d17ba0d13e508087026f27711cb8de41 (diff) | |
parent | 003194942720885c91b51d10a11c6004dd71fa51 (diff) | |
download | ceph-98e4c86474fc63a2184cfd7088f9637a2b65f428.tar.gz |
Merge pull request #205 from dalgaaf/wip-da-md_config-class
md_config_t: change from class to struct as the name indicates
Reviewed-by: Greg Farnum <greg@inktank.com>
-rw-r--r-- | src/auth/KeyRing.h | 1 | ||||
-rw-r--r-- | src/common/ceph_context.h | 2 | ||||
-rw-r--r-- | src/common/config.h | 2 | ||||
-rw-r--r-- | src/common/config_obs.h | 2 | ||||
-rw-r--r-- | src/global/global_context.h | 2 | ||||
-rw-r--r-- | src/global/pidfile.h | 2 | ||||
-rw-r--r-- | src/mds/MDSMap.h | 1 |
7 files changed, 5 insertions, 7 deletions
diff --git a/src/auth/KeyRing.h b/src/auth/KeyRing.h index fe1d2de7f1e..85b14a99f78 100644 --- a/src/auth/KeyRing.h +++ b/src/auth/KeyRing.h @@ -20,7 +20,6 @@ #include "auth/Crypto.h" #include "auth/Auth.h" -class md_config_t; class KeyRing : public KeyStore { map<EntityName, EntityAuth> keys; diff --git a/src/common/ceph_context.h b/src/common/ceph_context.h index 7ace17fa9bd..1678680fa6d 100644 --- a/src/common/ceph_context.h +++ b/src/common/ceph_context.h @@ -25,7 +25,7 @@ class AdminSocket; class CephContextServiceThread; class PerfCountersCollection; class md_config_obs_t; -class md_config_t; +struct md_config_t; class CephContextHook; class CryptoNone; class CryptoAES; diff --git a/src/common/config.h b/src/common/config.h index cf397bbe53e..08ae660b92b 100644 --- a/src/common/config.h +++ b/src/common/config.h @@ -67,7 +67,7 @@ extern const char *CEPH_CONF_FILE_DEFAULT; * FIXME: really we shouldn't allow changing integer or floating point values * while another thread is reading them, either. */ -class md_config_t { +struct md_config_t { public: /* Maps configuration options to the observer listening for them. */ typedef std::multimap <std::string, md_config_obs_t*> obs_map_t; diff --git a/src/common/config_obs.h b/src/common/config_obs.h index 3c415cd2c55..f15d934001b 100644 --- a/src/common/config_obs.h +++ b/src/common/config_obs.h @@ -18,7 +18,7 @@ #include <set> #include <string> -class md_config_t; +struct md_config_t; class md_config_obs_t { public: diff --git a/src/global/global_context.h b/src/global/global_context.h index ab251dced70..6586b5ca794 100644 --- a/src/global/global_context.h +++ b/src/global/global_context.h @@ -20,7 +20,7 @@ #include <iostream> #include <stdint.h> -class md_config_t; +struct md_config_t; extern CephContext *g_ceph_context; extern md_config_t *g_conf; diff --git a/src/global/pidfile.h b/src/global/pidfile.h index c17741b91df..6b60a5a16b5 100644 --- a/src/global/pidfile.h +++ b/src/global/pidfile.h @@ -15,7 +15,7 @@ #ifndef CEPH_COMMON_PIDFILE_H #define CEPH_COMMON_PIDFILE_H -class md_config_t; +struct md_config_t; // Write a pidfile with the current pid, using the configuration in the // provided conf structure. diff --git a/src/mds/MDSMap.h b/src/mds/MDSMap.h index b988f277711..c5bc1c36460 100644 --- a/src/mds/MDSMap.h +++ b/src/mds/MDSMap.h @@ -56,7 +56,6 @@ using namespace std; */ -class md_config_t; class CephContext; extern CompatSet get_mdsmap_compat_set(); |