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: v15.2.9~45^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7fe0612a8cccd5477c6e4369d212aac7d94f94db;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 64018fa1b40f..f6f7ab0322d1 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;