]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/OSDMonitor: tidy prefix definitions
authorJohn Spray <john.spray@redhat.com>
Mon, 25 Sep 2017 09:37:18 +0000 (10:37 +0100)
committerJohn Spray <john.spray@redhat.com>
Mon, 25 Sep 2017 09:54:02 +0000 (10:54 +0100)
We should define them in one place to make it easy
when updating get_store_prefixes.

Fixes: http://tracker.ceph.com/issues/21534
Signed-off-by: John Spray <john.spray@redhat.com>
src/mon/OSDMonitor.cc
src/mon/OSDMonitor.h

index 1fd2b2f9e3a4df679b9b6b6ebfb56fee65a9da9e..8011c6b746041b79f1138c4f072a27d90b0cefff 100644 (file)
@@ -80,7 +80,8 @@
 #include <boost/algorithm/string/predicate.hpp>
 
 #define dout_subsys ceph_subsys_mon
-#define OSD_PG_CREATING_PREFIX "osd_pg_creating"
+static const string OSD_PG_CREATING_PREFIX("osd_pg_creating");
+static const string OSD_METADATA_PREFIX("osd_metadata");
 
 namespace {
 
index ea81b6e9f183dcc69d448f73f793bd18238124f7..29814df0b51efcf4f4d6abc9a67b2044aefc710d 100644 (file)
@@ -43,8 +43,6 @@ class MOSDMap;
 #include "erasure-code/ErasureCodeInterface.h"
 #include "mon/MonOpRequest.h"
 
-#define OSD_METADATA_PREFIX "osd_metadata"
-
 /// information about a particular peer's failure reports for one osd
 struct failure_reporter_t {
   utime_t failed_since;     ///< when they think it failed