]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
osd/OpRequest: reset connection upon unregister 9100/head
authorKefu Chai <kchai@redhat.com>
Fri, 13 May 2016 03:26:31 +0000 (11:26 +0800)
committerAbhishek Varshney <abhishek.varshney@flipkart.com>
Thu, 26 May 2016 16:28:21 +0000 (21:58 +0530)
this helps to free the resources referenced by the connection, among
other things, in the case of MOSDOp, the OSD::Session and OSDMap. this
helps to free the resource earlier and trim the osdmaps in time.

Fixes: http://tracker.ceph.com/issues/13990
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 87850e96ea6fa45a8368bacabee50f9e95b40ae9)

src/osd/OpRequest.cc

index 8805d1a62f0e5be59927b41c5d8f817fa3308776..9bad447b69fba3239384ac772fc1b00f063318cf 100644 (file)
@@ -82,6 +82,7 @@ void OpRequest::_unregistered() {
   request->clear_data();
   request->clear_payload();
   request->release_message_throttle();
+  request->set_connection(nullptr);
 }
 
 bool OpRequest::check_rmw(int flag) {