From: Xiaoxi Chen Date: Tue, 19 Jul 2016 01:56:35 +0000 (+0800) Subject: mds/MDSMap output -1 instead of 0 when no fs present. X-Git-Tag: ses5-milestone5~352^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=89cd5dd22364cdefbcbd3e392faa326a03d82d0d;p=ceph.git mds/MDSMap output -1 instead of 0 when no fs present. 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 --- diff --git a/src/mds/MDSMap.h b/src/mds/MDSMap.h index 7bc981121b11..a34bf9da0b71 100644 --- a/src/mds/MDSMap.h +++ b/src/mds/MDSMap.h @@ -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),