]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/MDSMap output -1 instead of 0 when no fs present. 10202/head
authorXiaoxi Chen <xiaoxchen@ebay.com>
Tue, 19 Jul 2016 01:56:35 +0000 (09:56 +0800)
committerXiaoxi Chen <xiaoxchen@ebay.com>
Tue, 19 Jul 2016 01:58:24 +0000 (09:58 +0800)
When no fs present, the mdsmap::dump will output metadata_pool: 0,
which is misleading.

Change the initial value of metadata_pool from 0 to -1.

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
src/mds/MDSMap.h

index 7bc981121b112f20a687612dcdad930f87003b36..a34bf9da0b7136ee42667a3d7630d3d62388f859 100644 (file)
@@ -225,7 +225,7 @@ public:
       session_autoclose(0),
       max_file_size(0),
       cas_pool(-1),
-      metadata_pool(0),
+      metadata_pool(-1),
       max_mds(0),
       ever_allowed_features(0),
       explicitly_allowed_features(0),