]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix bad versioned bucket stats after reshard
authorJ. Eric Ivancich <ivancich@redhat.com>
Thu, 29 Nov 2018 23:02:45 +0000 (18:02 -0500)
committerPrashant D <pdhange@redhat.com>
Sun, 26 May 2019 23:56:12 +0000 (19:56 -0400)
commit49a6d901b54b6ea85947f78eb23c5bc9e12840c7
tree8922234ee8fd2f533dc34fd7ba1441279af9a2b3
parent2bb04a30ed0a4331092a8633c716caa0fdd2ea61
rgw: fix bad versioned bucket stats after reshard

When a versioned bucket is resharded, the stats for bucket index
entries of type PlainIdx and InstanceIdx were both accumulated to
determine the bucket stats. This caused a doubling of some stats, such
as bytes used. This fix makes certain that only PlainIdx entries are
accumulated. This works for unversioned buckets as well, as they only
have Plain Idx entries.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 6379ec6a81bf469341a095b3b852678115fb99f7)
src/cls/rgw/cls_rgw_types.cc