From 4c4da772759074ef52fa2db1b3c4c55bedb7fee5 Mon Sep 17 00:00:00 2001 From: xie xingguo Date: Thu, 2 Jun 2016 15:06:21 +0800 Subject: [PATCH] mds/MDSMap: change test_flag() return type from int to bool which better matches its behaviour. Signed-off-by: xie xingguo --- src/mds/MDSMap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.47.3