From: Yehuda Sadeh Date: Tue, 12 Aug 2014 18:17:47 +0000 (-0700) Subject: rgw: call throttle_data() even if renew_state() failed X-Git-Tag: v0.84~5^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2257%2Fhead;p=ceph.git rgw: call throttle_data() even if renew_state() failed Otherwise we're going to leak the aio callback handle. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_rados.cc b/src/rgw/rgw_rados.cc index 65e5de92346..3f561d844ec 100644 --- a/src/rgw/rgw_rados.cc +++ b/src/rgw/rgw_rados.cc @@ -3046,6 +3046,11 @@ public: */ ret = opstate->renew_state(); if (ret < 0) { + ldout(store->ctx(), 0) << "ERROR: RGWRadosPutObj::handle_data(): failed to renew op state ret=" << ret << dendl; + int r = processor->throttle_data(handle, false); + if (r < 0) { + ldout(store->ctx(), 0) << "ERROR: RGWRadosPutObj::handle_data(): processor->throttle_data() returned " << r << dendl; + } /* could not renew state! might have been marked as cancelled */ return ret; }