mirror of
https://github.com/ceph/ceph
synced 2024-12-21 19:02:10 +00:00
mon: fix msg leak in resend_routed_requests
MForward takes its own ref so we can drop ours. Signed-off-by: Sage Weil <sage@redhat.com>
This commit is contained in:
parent
c9dad52c96
commit
362b18a532
@ -3323,6 +3323,7 @@ void Monitor::resend_routed_requests()
|
||||
dout(10) << " resend to mon." << mon << " tid " << rr->tid << " " << *req << dendl;
|
||||
MForward *forward = new MForward(rr->tid, req, rr->con_features,
|
||||
rr->session->caps);
|
||||
req->put(); // forward takes its own ref; drop ours.
|
||||
forward->client = rr->client_inst;
|
||||
forward->set_priority(req->get_priority());
|
||||
messenger->send_message(forward, monmap->get_inst(mon));
|
||||
|
Loading…
Reference in New Issue
Block a user