]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw:dont update entrypoint when removing bucket
authorAran85 <zhangzengran@h3c.com>
Wed, 30 Sep 2015 01:29:26 +0000 (09:29 +0800)
committerYehuda Sadeh <yehuda@redhat.com>
Mon, 7 Dec 2015 19:51:25 +0000 (11:51 -0800)
when removing bucket,we unlink the bucket bucket but we don't want
to update the entrypoint here.Because the update_entrypoint's default
value is true,so we need to indicate it to false.

Signed-off-by: Zengran Zhang <zhangzengran@h3c.com>
src/rgw/rgw_bucket.cc

index b857a5fd08ff74ca6b728f6513a2d6589c63868e..a3c3b9cb578a7a15922adb2bca126bb783b1a898 100644 (file)
@@ -450,7 +450,7 @@ int rgw_remove_bucket(RGWRados *store, const string& bucket_owner, rgw_bucket& b
     return ret;
   }
 
-  ret = rgw_unlink_bucket(store, info.owner, bucket.name);
+  ret = rgw_unlink_bucket(store, info.owner, bucket.name, false);
   if (ret < 0) {
     lderr(store->ctx()) << "ERROR: unable to remove user bucket information" << dendl;
   }