]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mon/PGMonitor: mark dump_object_stat_sum() as static
authorKefu Chai <kchai@redhat.com>
Sat, 6 Aug 2016 16:58:04 +0000 (00:58 +0800)
committerNathan Cutler <ncutler@suse.com>
Sat, 12 Nov 2016 10:58:13 +0000 (11:58 +0100)
so we can test this method without create an instance of PGMonitor.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(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

index 4161a029fc9e074ebf687ab160166770ba038604..746b260aa8ea07ebb8dbd5e6d1bb57172724590c 100644 (file)
@@ -145,7 +145,7 @@ private:
                          int threshold,
                          vector<string>& 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,