]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mds/mdsrank: fix MDSRank::get_metadata_pool return value 9651/head
authorhuanwen ren <ren.huanwen@zte.com.cn>
Sun, 12 Jun 2016 10:00:58 +0000 (18:00 +0800)
committerhuanwen ren <ren.huanwen@zte.com.cn>
Sun, 12 Jun 2016 10:00:58 +0000 (18:00 +0800)
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
src/mds/MDSRank.cc
src/mds/MDSRank.h

index 47c196c755d905ad39cfa9960a00c46edfad344a..fc71116639eebd6290a3656c240008aa62e2b16f 100644 (file)
@@ -270,7 +270,7 @@ class C_MDS_VoidFn : public MDSInternalContext
   }
 };
 
-uint64_t MDSRank::get_metadata_pool()
+int64_t MDSRank::get_metadata_pool()
 {
     return mdsmap->get_metadata_pool();
 }
index fe65c56d90da9f602aaee01d9b28545d10071e4a..a8dcf7f51410de7a377321d774a2f0ab429354b4 100644 (file)
@@ -125,7 +125,7 @@ class MDSRank {
 
   public:
     mds_rank_t get_nodeid() const { return whoami; }
-    uint64_t get_metadata_pool();
+    int64_t get_metadata_pool();
 
     // Reference to global MDS::mds_lock, so that users of MDSRank don't
     // carry around references to the outer MDS, and we can substitute