]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/MDSMap: change test_flag() return type from int to bool 9445/head
authorxie xingguo <xie.xingguo@zte.com.cn>
Thu, 2 Jun 2016 07:06:21 +0000 (15:06 +0800)
committerxie xingguo <xie.xingguo@zte.com.cn>
Tue, 14 Jun 2016 13:10:24 +0000 (21:10 +0800)
which better matches its behaviour.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
src/mds/MDSMap.h

index 9dc9b5853668ce79d654dc361a41326dca9bff18..7bc981121b112f20a687612dcdad930f87003b36 100644 (file)
@@ -243,7 +243,7 @@ public:
   void set_max_filesize(uint64_t m) { max_file_size = m; }
   
   int get_flags() const { return flags; }
-  int test_flag(int f) const { return flags & f; }
+  bool test_flag(int f) const { return flags & f; }
   void set_flag(int f) { flags |= f; }
   void clear_flag(int f) { flags &= ~f; }