]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: copy actual stats from the source shards during reshard 24527/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:58:57 +0000 (18:58 +0200)
commitf0a8f527a9977afd7a180d21d339f271511920c0
treef3a3005f2b288faa40025266b5c3dcd887637557
parent9bc750579c8838447b89d743132612e100f6d84b
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