]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
osd/OpRequest: reset connection upon unregister
authorKefu Chai <kchai@redhat.com>
Fri, 13 May 2016 03:26:31 +0000 (11:26 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 17 May 2016 04:45:06 +0000 (12:45 +0800)
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>
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) {