]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: more of dropping async ops reference
authorYehuda Sadeh <yehuda@redhat.com>
Thu, 14 Jan 2016 00:35:26 +0000 (16:35 -0800)
committerYehuda Sadeh <yehuda@redhat.com>
Fri, 12 Feb 2016 00:13:54 +0000 (16:13 -0800)
instead of deleting. This was missing from a previous commit.

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

index a4de25dba857fc9be3f5ffc550ab7fe1e229a079..45015ab6e3fffbae0fdc57b01d5522310cd1ba10 100644 (file)
@@ -399,7 +399,9 @@ public:
                                                }
 
   ~RGWReadMDLogEntriesCR() {
-    delete req;
+    if (req) {
+      req->finish();
+    }
   }
 
   int send_request() {
@@ -890,7 +892,9 @@ public:
   }
 
   ~RGWMetaStoreEntryCR() {
-    delete req;
+    if (req) {
+      req->finish();
+    }
   }
 
   int send_request() {
@@ -937,7 +941,9 @@ public:
   }
 
   ~RGWMetaRemoveEntryCR() {
-    delete req;
+    if (req) {
+      req->finish();
+    }
   }
 
   int send_request() {