]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: fix radosgw-admin bucket rm with --purge-objects and --bypass-gc
authorAleksei Gutikov <aleksey.gutikov@synesis.ru>
Tue, 14 Nov 2017 12:45:39 +0000 (15:45 +0300)
committerAleksei Gutikov <aleksey.gutikov@synesis.ru>
Thu, 16 Nov 2017 09:20:20 +0000 (12:20 +0300)
commitdb42e385d26ee4d1ef94b900102b705d6a794029
treee89d8a966ce29974099fddeb0aeb3de4219e4117
parente8df19197e00ff21a5389d34665aaaf1c7d94534
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>
src/rgw/rgw_bucket.cc