]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/admin: fix radosgw-admin datalog list max-entries issue 45500/head
authorYuval Lifshitz <ylifshit@redhat.com>
Wed, 2 Feb 2022 14:53:21 +0000 (16:53 +0200)
committerCory Snyder <csnyder@iland.com>
Thu, 17 Mar 2022 13:37:04 +0000 (09:37 -0400)
Fixes: https://tracker.ceph.com/issues/54116
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
(cherry picked from commit bd429ed9bec8aa4dc17c61a07e30987f50f7e5f6)

src/rgw/rgw_datalog.cc

index 140ef54cb3e3d3b4b0f686d1b5d84b0bbb48dacf..550f08596b9cfd68176eb26f612e00fb0a50067e 100644 (file)
@@ -768,8 +768,8 @@ int RGWDataChangesLog::list_entries(const DoutPrefixProvider *dpp, int max_entri
     if (ret < 0) {
       return ret;
     }
-    if (truncated) {
-      *ptruncated = true;
+    if (!truncated) {
+      *ptruncated = false;
       return 0;
     }
   }