]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: introduce safe user-reset-stats 36655/head
authorMatt Benjamin <mbenjamin@redhat.com>
Thu, 30 Apr 2020 22:59:11 +0000 (18:59 -0400)
committerNathan Cutler <ncutler@suse.com>
Sat, 15 Aug 2020 13:13:53 +0000 (15:13 +0200)
commit08ceac5cd6ac68433fc021375f5dd1b9fea8f795
tree876f93dd51a4433343e86e757edc2e854e8094a6
parentff4933ea8b74423d0b799ad5cec1d5a8563186df
rgw: introduce safe user-reset-stats

Defines cls_user_reset_stats2, a value-returning cls operation
that sets new stats via progressive calls with an accumulator,
avoiding risk of excessive call runtime.

Fixes: https://tracker.ceph.com/issues/41080
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit 25a82ed3795ecf6395e3d16fcbb4c29e478aa065)
src/cls/user/cls_user.cc
src/cls/user/cls_user_ops.h
src/rgw/rgw_tools.cc
src/rgw/rgw_tools.h
src/rgw/services/svc_rados.cc
src/rgw/services/svc_rados.h
src/rgw/services/svc_user_rados.cc