]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: copy actual stats from the source shards during reshard
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 5 Oct 2018 09:19:18 +0000 (11:19 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Fri, 5 Oct 2018 09:24:26 +0000 (11:24 +0200)
commitbeb90638ae3d5329653b61bae0d6714796c41d04
tree312e9cfe28f56b7a10dbbeb15545607447a47bf8
parenta0c6b833348b9495ffb5d5141a53d87ba84df7a6
rgw: copy actual stats from the source shards during reshard

Currently we don't copy the actual_stats field during reshard, which makes
resharded buckets show a size_utilized as 0, which further has the problem that
a subsequent object removal would subtract the object size from the 0 size
utilized showing up large uint64_t values. Copy the size_actual from the source
object in both cls and in reshard_process. This will fix the new buckets,
existing buckets will still have to go through a bucket check --fix for their
stats to be corrected.

Fixes: http://tracker.ceph.com/issues/36290
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
src/cls/rgw/cls_rgw.cc
src/cls/rgw/cls_rgw_types.cc
src/rgw/rgw_reshard.cc