From 90b9591c7d7d373bc1a742c608ab34119af40134 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 10 Oct 2017 20:40:24 +0800 Subject: [PATCH] mon/PGMap: use uint64_t for pg state Signed-off-by: Kefu Chai --- src/mon/PGMap.cc | 4 ++-- src/mon/PGMap.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mon/PGMap.cc b/src/mon/PGMap.cc index 1cb1abd2002..b3ec334a728 100644 --- a/src/mon/PGMap.cc +++ b/src/mon/PGMap.cc @@ -1991,7 +1991,7 @@ void PGMap::generate_test_instances(list& 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& 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(); diff --git a/src/mon/PGMap.h b/src/mon/PGMap.h index d196f769443..cfe7b3ab08b 100644 --- a/src/mon/PGMap.h +++ b/src/mon/PGMap.h @@ -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& pgs) const; void get_health_checks( -- 2.39.5