]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config: cleanup remove some unused macros 19599/head
authorYao Zongyou <yaozongyou@vip.qq.com>
Tue, 19 Dec 2017 13:19:48 +0000 (21:19 +0800)
committerYao Zongyou <yaozongyou@vip.qq.com>
Tue, 19 Dec 2017 13:19:48 +0000 (21:19 +0800)
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
src/common/config.cc
src/common/config.h

index baa9de6609bee291b5a16a5e24356e35b3cbca07..12040e5b7da3c0ed50d0f422cc014a3ca6560c3a 100644 (file)
@@ -41,7 +41,7 @@ using std::ostringstream;
 using std::pair;
 using std::string;
 
-const char *CEPH_CONF_FILE_DEFAULT = "$data_dir/config, /etc/ceph/$cluster.conf, ~/.ceph/$cluster.conf, $cluster.conf"
+static const char *CEPH_CONF_FILE_DEFAULT = "$data_dir/config, /etc/ceph/$cluster.conf, ~/.ceph/$cluster.conf, $cluster.conf"
 #if defined(__FreeBSD__)
     ", /usr/local/etc/ceph/$cluster.conf"
 #endif
index 0e049920eeafff8c7340a46628cf7e48dc477e40..ed1c23f9e373f3b15b8a8698e8bbfe640e7aef24 100644 (file)
 #include "common/config_obs.h"
 #include "common/options.h"
 
-#define OSD_REP_PRIMARY 0
-#define OSD_REP_SPLAY   1
-#define OSD_REP_CHAIN   2
-
 class CephContext;
 
-extern const char *CEPH_CONF_FILE_DEFAULT;
-
-#define LOG_TO_STDERR_NONE 0
-#define LOG_TO_STDERR_SOME 1
-#define LOG_TO_STDERR_ALL 2
-
 /** This class represents the current Ceph configuration.
  *
  * For Ceph daemons, this is the daemon configuration.  Log levels, caching