rgw: don't remove bucket index when removing a bucket

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
This commit is contained in:
Yehuda Sadeh 2013-06-27 23:21:51 -07:00
parent 10a2b60f33
commit 72ac281d7a

View File

@ -2822,14 +2822,6 @@ int RGWRados::delete_bucket(rgw_bucket& bucket, RGWObjVersionTracker& objv_track
if (r < 0)
return r;
ObjectWriteOperation op;
op.remove();
librados::AioCompletion *completion = rados->aio_create_completion(NULL, NULL, NULL);
r = index_ctx.aio_operate(oid, completion, &op);
completion->release();
if (r < 0)
return r;
return 0;
}