]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix bad user stats on versioned bucket after reshard 33304/head
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 4 Dec 2018 22:43:38 +0000 (17:43 -0500)
committerNathan Cutler <ncutler@suse.com>
Fri, 14 Feb 2020 10:04:44 +0000 (11:04 +0100)
commit3e24fa634b452d8aeaeabfbc7c641af4af8131c2
tree7d84ce39a52dd6c583844c48df14793a5fe71e89
parentcb8591cc400f2786f9101b089a932d3a6d980aa7
rgw: fix bad user stats on versioned bucket after reshard

User stats should only count bucket index entries that refer to actual
data. So only count entries with categories MAIN or MULTIMETA.

Note: the full solution is provided by the combination of the fixes in
PR 25333 (https://github.com/ceph/ceph/pull/25333) and these changes.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
(cherry picked from commit 8cd7ff99dd6cb7b3d63b80e09c8a2f229445e0a1)
src/rgw/rgw_rados.cc