]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: user quota may not adjust on bucket removal 7586/head
authorroot <root@gluster5.gfs.fsw.fujitsu.com>
Tue, 9 Feb 2016 20:03:24 +0000 (12:03 -0800)
committerroot <root@gluster5.gfs.fsw.fujitsu.com>
Tue, 9 Feb 2016 20:03:24 +0000 (12:03 -0800)
commit06507992e3fad837c4667f467d59fc026a2ca0e8
treeb9ec21ad82f4bf4c839c7cea43c77c6ed3b9ea7f
parent2c79a5e428598a31be935cc04557e2adf93c0cad
rgw: user quota may not adjust on bucket removal

Description:
If the user/admin removes a bucket using --force/--purge-objects options with s3cmd/radosgw-admin respectively, the user stats will continue to reflect the deleted objects for quota purposes, and there seems to be no way to reset them. User stats need to be sync'ed prior to bucket removal.

Solution:
Sync user stats before removing a bucket.

Fixes: #14507
Signed-off-by: Edward Yang eyang@us.fujitsu.com
src/rgw/rgw_bucket.cc
src/rgw/rgw_op.cc