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: v16.1.0~112^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=8dd07c8d185d18c34525c9ed8aca4d62e976a675;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 --- diff --git a/src/cls/user/cls_user.cc b/src/cls/user/cls_user.cc index 1ab75d384f80..e278ad7fc128 100644 --- a/src/cls/user/cls_user.cc +++ b/src/cls/user/cls_user.cc @@ -420,6 +420,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;