Skip to content

Commit

Permalink
mon: use dump_bool in pool_get command
Browse files Browse the repository at this point in the history
Signed-off-by: Chang Liu <liuchang0812@gmail.com>
(cherry picked from commit 8372333)
  • Loading branch information
liuchang0812 authored and Prashant D committed Mar 14, 2018
1 parent 31928fe commit dfe054a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/mon/OSDMonitor.cc
Expand Up @@ -4778,9 +4778,8 @@ bool OSDMonitor::preprocess_command(MonOpRequestRef op)
case WRITE_FADVISE_DONTNEED:
case NOSCRUB:
case NODEEP_SCRUB:
f->dump_string(i->first.c_str(),
p->has_flag(pg_pool_t::get_flag_by_name(i->first)) ?
"true" : "false");
f->dump_bool(i->first.c_str(),
p->has_flag(pg_pool_t::get_flag_by_name(i->first)));
break;
case HIT_SET_PERIOD:
f->dump_int("hit_set_period", p->hit_set_period);
Expand Down

0 comments on commit dfe054a

Please sign in to comment.