The MonOpRequestRef owns one ref; we need to get() another so we
can pass it to send_reply.
Signed-off-by: Sage Weil <sage@redhat.com>
op->mark_pgmon_event(__func__);
ack_op->mark_pgmon_event(__func__);
MPGStats *ack = static_cast<MPGStats*>(ack_op->get_req());
+ ack->get(); // MonOpRequestRef owns one ref; give the other to send_reply.
dout(7) << "_updated_stats for "
<< op->get_req()->get_orig_source_inst() << dendl;
mon->send_reply(op, ack);