]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: fix msg leak in resend_routed_requests
authorSage Weil <sage@redhat.com>
Fri, 2 Oct 2015 21:43:22 +0000 (17:43 -0400)
committerSage Weil <sage@redhat.com>
Sat, 3 Oct 2015 16:40:53 +0000 (12:40 -0400)
MForward takes its own ref so we can drop ours.

Signed-off-by: Sage Weil <sage@redhat.com>
src/mon/Monitor.cc

index 7dff5face4f0d46bb9465e6edff9635a3b6f87a8..b1bfd9a7b4e96ae72968afd9091bc2c324c14b7d 100644 (file)
@@ -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));