]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mon/PGMap: use uint64_t for pg state
authorKefu Chai <kchai@redhat.com>
Tue, 10 Oct 2017 12:40:24 +0000 (20:40 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 10 Oct 2017 12:41:48 +0000 (20:41 +0800)
Signed-off-by: Kefu Chai <kchai@redhat.com>
src/mon/PGMap.cc
src/mon/PGMap.h

index 1cb1abd200294a3418b191dc460275c50681ef8b..b3ec334a728daedbe2cc8166de4d3953381e3672 100644 (file)
@@ -1991,7 +1991,7 @@ void PGMap::generate_test_instances(list<PGMap*>& o)
   }
 }
 
-void PGMap::get_filtered_pg_stats(uint32_t state, int64_t poolid, int64_t osdid,
+void PGMap::get_filtered_pg_stats(uint64_t state, int64_t poolid, int64_t osdid,
                                   bool primary, set<pg_t>& pgs) const
 {
   for (auto i = pg_stat.begin();
@@ -2950,7 +2950,7 @@ int process_pg_map_command(
     if (states.empty())
       states.push_back("all");
 
-    uint32_t state = 0;
+    uint64_t state = 0;
 
     while (!states.empty()) {
       string state_str = states.back();
index d196f76944320f2036014ea1eaa3775b13c3a48c..cfe7b3ab08be901a3d08634c7c1347b91eb5ea3f 100644 (file)
@@ -436,7 +436,7 @@ public:
   void dump_osd_blocked_by_stats(Formatter *f) const;
   void print_osd_blocked_by_stats(std::ostream *ss) const;
 
-  void get_filtered_pg_stats(uint32_t state, int64_t poolid, int64_t osdid,
+  void get_filtered_pg_stats(uint64_t state, int64_t poolid, int64_t osdid,
                              bool primary, set<pg_t>& pgs) const;
 
   void get_health_checks(