From ea2c7032871d9cbc4d32cb2543f3da0afc3a470f Mon Sep 17 00:00:00 2001 From: Yehuda Sadeh Date: Sun, 17 Apr 2016 18:37:25 -0700 Subject: [PATCH] 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 --- src/rgw/rgw_cr_rest.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/rgw/rgw_cr_rest.h b/src/rgw/rgw_cr_rest.h index 88a051a815c..40743488bfb 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