]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: copy actual stats from the source shards during reshard 24526/head
authorAbhishek Lekshmanan <abhishek@suse.com>
Fri, 5 Oct 2018 09:19:18 +0000 (11:19 +0200)
committerAbhishek Lekshmanan <abhishek@suse.com>
Wed, 10 Oct 2018 16:42:17 +0000 (18:42 +0200)
commit674a5f9b6a5a5a9421b5c0ed0ec1469e2900468e
tree530fa14e2423a85ffe464739e4e33df0d608bfeb
parent4c77b8ee009388401a33046c1eb2987d02d0a85b
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>
(cherry picked from commit beb90638ae3d5329653b61bae0d6714796c41d04)
src/cls/rgw/cls_rgw.cc
src/cls/rgw/cls_rgw_types.cc
src/rgw/rgw_reshard.cc