Skip to content

Commit

Permalink
mon/PGMonitor: mark dump_object_stat_sum() as static
Browse files Browse the repository at this point in the history
so we can test this method without create an instance of PGMonitor.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit af3d3e2)

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)
  • Loading branch information
tchaikov authored and smithfarm committed Nov 12, 2016
1 parent f776699 commit d62258c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon/PGMonitor.h
Expand Up @@ -145,7 +145,7 @@ class PGMonitor : public PaxosService {
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,
Expand Down

0 comments on commit d62258c

Please sign in to comment.