From: Yehuda Sadeh Date: Mon, 18 Apr 2016 01:37:25 +0000 (-0700) Subject: rgw: clean async rest ops in calling cr X-Git-Tag: v10.2.0~1^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea2c7032871d9cbc4d32cb2543f3da0afc3a470f;p=ceph.git rgw: clean async rest ops in calling cr Need to drop a reference to the async rest op when done. Signed-off-by: Yehuda Sadeh --- diff --git a/src/rgw/rgw_cr_rest.h b/src/rgw/rgw_cr_rest.h index 88a051a815c1..40743488bfb3 100644 --- a/src/rgw/rgw_cr_rest.h +++ b/src/rgw/rgw_cr_rest.h @@ -51,6 +51,12 @@ public: } return 0; } + + void request_cleanup() { + if (http_op) { + http_op->put(); + } + } }; template @@ -113,6 +119,12 @@ public: } return 0; } + + void request_cleanup() { + if (http_op) { + http_op->put(); + } + } }; #endif