Merge pull request #11815 from ceph/wip-17792

rgw: remove circular reference in RGWAsyncRadosRequest
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
This commit is contained in:
Orit Wasserman 2016-11-23 20:45:07 +01:00 committed by GitHub
commit fdc92eb11e

View File

@ -22,11 +22,9 @@ public:
RGWAsyncRadosRequest(RGWCoroutine *_caller, RGWAioCompletionNotifier *_cn) : caller(_caller), notifier(_cn), retcode(0),
done(false), lock("RGWAsyncRadosRequest::lock") {
notifier->get();
caller->get();
}
virtual ~RGWAsyncRadosRequest() {
notifier->put();
caller->put();
}
void send_request() {