]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/admin: fix radosgw-admin datalog list max-entries issue 45499/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:36:44 +0000 (09:36 -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 c64969712ae2531019dfade313149d8a351e4b91..89e41471e11c75458158e17291180434d3d699d7 100644 (file)
@@ -767,8 +767,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;
     }
   }