From: Kefu Chai Date: Fri, 13 May 2016 03:26:31 +0000 (+0800) Subject: osd/OpRequest: reset connection upon unregister X-Git-Tag: v10.2.2~51^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F9100%2Fhead;p=ceph.git osd/OpRequest: reset connection upon unregister 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 (cherry picked from commit 87850e96ea6fa45a8368bacabee50f9e95b40ae9) --- diff --git a/src/osd/OpRequest.cc b/src/osd/OpRequest.cc index 8805d1a62f0e..9bad447b69fb 100644 --- a/src/osd/OpRequest.cc +++ b/src/osd/OpRequest.cc @@ -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) {