]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: clean async rest ops in calling cr
authorYehuda Sadeh <yehuda@redhat.com>
Mon, 18 Apr 2016 01:37:25 +0000 (18:37 -0700)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 18 Apr 2016 01:37:25 +0000 (18:37 -0700)
Need to drop a reference to the async rest op when done.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
src/rgw/rgw_cr_rest.h

index 88a051a815c188cd3b902a00eb1e0a89a8ce2867..40743488bfb3b251bcb9652ac5bfe9bea882ad78 100644 (file)
@@ -51,6 +51,12 @@ public:
     }
     return 0;
   }
+
+  void request_cleanup() {
+    if (http_op) {
+      http_op->put();
+    }
+  }
 };
 
 template <class S, class T>
@@ -113,6 +119,12 @@ public:
     }
     return 0;
   }
+
+  void request_cleanup() {
+    if (http_op) {
+      http_op->put();
+    }
+  }
 };
 
 #endif