]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix radosgw-admin bucket rm with --purge-objects and --bypass-gc 19085/head
authorAleksei Gutikov <aleksey.gutikov@synesis.ru>
Tue, 14 Nov 2017 12:45:39 +0000 (15:45 +0300)
committerShinobu Kinjo <shinobu@redhat.com>
Tue, 21 Nov 2017 22:07:42 +0000 (17:07 -0500)
commit90b56a2903db892bcd736d9f9eeca3a8847b353b
treeb47cd34e339872ada4f90498c42830114e72e5cf
parentf02d7109c5f00cd2165082c4336b3623352be7c5
rgw: fix radosgw-admin bucket rm with --purge-objects and --bypass-gc

Call RGWRados::delete_bucket() from rgw_remove_bucket_bypass_gc()
instead of partial copy of code of RGWRados::delete_bucket().

Fix updating user stats after radosgw-admin bucket rm --purge-objects and --bypass-gc
Due to rgw_user(const std::string& s) was called incorrect version of rgw_bucket_sync_user_stats().

Fixes: http://tracker.ceph.com/issues/22122
Fixes: http://tracker.ceph.com/issues/19959
Signed-off-by: Aleksei Gutikov <aleksey.gutikov@synesis.ru>
(cherry picked from commit db42e385d26ee4d1ef94b900102b705d6a794029)
src/rgw/rgw_bucket.cc