]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd: use const char * state names
authorSage Weil <sage.weil@dreamhost.com>
Wed, 4 May 2011 21:12:00 +0000 (14:12 -0700)
committerSage Weil <sage.weil@dreamhost.com>
Wed, 4 May 2011 21:12:00 +0000 (14:12 -0700)
Signed-off-by: Sage Weil <sage.weil@dreamhost.com>
src/osd/PG.h

index d794e75c7f7169f45049c8b8b2c00364e6349882..ab67d04b7ce678ef18191d64d20ef9ebc68f8d7c 100644 (file)
@@ -895,8 +895,8 @@ public:
 
     /* States */
     struct NamedState {
-      string state_name;
-      virtual string &get_state_name() { return state_name; }
+      const char *state_name;
+      const char *get_state_name() { return state_name; }
       virtual ~NamedState() {}
     };