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)
request->clear_data();
request->clear_payload();
request->release_message_throttle();
+ request->set_connection(nullptr);
}
bool OpRequest::check_rmw(int flag) {