Fixes: http://tracker.ceph.com/issues/15793
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
MPing *reply = new MPing;
entity_inst_t inst = m->get_source_inst();
bufferlist payload;
- Formatter *f = new JSONFormatter(true);
+ boost::scoped_ptr<Formatter> f(new JSONFormatter(true));
f->open_object_section("pong");
list<string> health_str;
- get_health(health_str, NULL, f);
+ get_health(health_str, NULL, f.get());
{
stringstream ss;
- get_mon_status(f, ss);
+ get_mon_status(f.get(), ss);
}
f->close_section();