]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: fix user stats iterative increment 37779/head
authorMark Kogan <mkogan@redhat.com>
Mon, 10 Aug 2020 10:19:19 +0000 (13:19 +0300)
committerNathan Cutler <ncutler@suse.com>
Sat, 24 Oct 2020 11:52:41 +0000 (13:52 +0200)
commit271eae37ca823c768e42e57bb845c93d9e3ef52f
tree4f61f0ca3f6841b383fd5ca844bee6130854dc2d
parentb6d6e254979727c5d5ae5386f42bf220a508269a
rgw: fix user stats iterative increment

The RGWBucketCtl::sync_user_stats() function can increment or reset the
stats [1][2]

[1]https://github.com/ceph/ceph/blob/master/src/rgw/rgw_bucket.cc#L3745
[2]https://github.com/ceph/ceph/blob/master/src/rgw/services/svc_bi_rados.cc#L379-L381

fixes: https://tracker.ceph.com/issues/46400

Signed-off-by: Mark Kogan <mkogan@redhat.com>
(cherry picked from commit 21e877ca67db7840026b1768751b167e2c0a53da)

Conflicts:
src/rgw/rgw_sal.cc
- master's owner->get_id() becomes user.info.user_id in octopus
src/rgw/rgw_sal.cc