From: Abhishek Lekshmanan Date: Mon, 23 Nov 2020 15:23:37 +0000 (+0100) Subject: rgw: cls/user: set from_index for reset stats calls X-Git-Tag: v14.2.17~86^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=c26ddfee913362a2613004526b18023634ca5e54;p=ceph.git rgw: cls/user: set from_index for reset stats calls Fixes: https://tracker.ceph.com/issues/48327 Signed-off-by: Mykola Golub Signed-off-by: Abhishek Lekshmanan (cherry picked from commit 8dd07c8d185d18c34525c9ed8aca4d62e976a675) --- diff --git a/src/cls/user/cls_user.cc b/src/cls/user/cls_user.cc index e80e6e231c270..d3015a120b7ac 100644 --- a/src/cls/user/cls_user.cc +++ b/src/cls/user/cls_user.cc @@ -414,6 +414,9 @@ static int cls_user_reset_stats(cls_method_context_t hctx, } add_header_stats(&header.stats, e); } + if (!keys.empty()) { + from_index = keys.rbegin()->first; + } } while (truncated); bufferlist bl;