From d62258c03492fca5fca99650cc7514348251cb7b Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Sun, 7 Aug 2016 00:58:04 +0800 Subject: [PATCH] mon/PGMonitor: mark dump_object_stat_sum() as static so we can test this method without create an instance of PGMonitor. Signed-off-by: Kefu Chai (cherry picked from commit af3d3e25823ca9b40ddf09835edb82795ac68f33) Conflicts: src/mon/PGMonitor.cc ("const" suffix of function definition was removed in master, but in hammer it wasn't there, so no change necessary) src/mon/PGMonitor.h (added static prefix to function declaration; did not remove "const" suffix because it wasn't there in hammer) --- src/mon/PGMonitor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mon/PGMonitor.h b/src/mon/PGMonitor.h index 4161a029fc9e0..746b260aa8ea0 100644 --- a/src/mon/PGMonitor.h +++ b/src/mon/PGMonitor.h @@ -145,7 +145,7 @@ private: int threshold, vector& args) const; - void dump_object_stat_sum(TextTable &tbl, Formatter *f, + static void dump_object_stat_sum(TextTable &tbl, Formatter *f, object_stat_sum_t &sum, uint64_t avail, float raw_used_rate, -- 2.39.5