]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: MonCommand: have flags as uint32_t instead of enum
authorJoao Eduardo Luis <joao@suse.de>
Fri, 8 May 2015 14:53:31 +0000 (15:53 +0100)
committerJoao Eduardo Luis <joao@suse.de>
Thu, 16 Jul 2015 11:20:02 +0000 (12:20 +0100)
Makes much more sense if we're OR'ing flags.  Or not as weird.

Signed-off-by: Joao Eduardo Luis <joao@suse.de>
src/mon/Monitor.h

index d031115167bf9600dbe95789be5014b56e728c66..fb867eade11349d2442669225f22f9d2160ca8f2 100644 (file)
@@ -946,10 +946,8 @@ struct MonCommand {
   uint64_t flags;
 
   // MonCommand flags
-  enum {
-    FLAG_NOFORWARD = (1 << 0),
-  };
-
+  static const uint64_t FLAG_NOFORWARD  = 1 << 0;
+  
   bool has_flag(uint64_t flag) const { return (flags & flag) != 0; }
   void set_flag(uint64_t flag) { flags |= flag; }
   void unset_flag(uint64_t flag) { flags &= ~flag; }