]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: fix tmp objects leakage
authorYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 4 Nov 2011 20:40:07 +0000 (13:40 -0700)
committerYehuda Sadeh <yehuda@hq.newdream.net>
Fri, 4 Nov 2011 20:40:07 +0000 (13:40 -0700)
src/rgw/rgw_rados.cc

index 7d4a6c302bce3dc678e22dae03d0b19d4795856c..0d6e903e4e029ae9d315c5ebeddb5088b54165f5 100644 (file)
@@ -972,7 +972,7 @@ int RGWRados::delete_obj_impl(void *ctx, rgw_obj& obj, bool sync)
     }
   } else {
     librados::AioCompletion *completion = rados->aio_create_completion(NULL, NULL, NULL);
-    r = io_ctx.aio_operate(obj.object, completion, &op);
+    r = io_ctx.aio_operate(oid, completion, &op);
     completion->release();
   }