From: xie xingguo Date: Thu, 2 Jun 2016 07:06:21 +0000 (+0800) Subject: mds/MDSMap: change test_flag() return type from int to bool X-Git-Tag: v11.0.0~175^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9445%2Fhead;p=ceph.git mds/MDSMap: change test_flag() return type from int to bool which better matches its behaviour. Signed-off-by: xie xingguo --- diff --git a/src/mds/MDSMap.h b/src/mds/MDSMap.h index 9dc9b5853668..7bc981121b11 100644 --- a/src/mds/MDSMap.h +++ b/src/mds/MDSMap.h @@ -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; }