]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw/admin: fix radosgw-admin datalog list max-entries issue 44866/head
authorYuval Lifshitz <ylifshit@redhat.com>
Wed, 2 Feb 2022 14:53:21 +0000 (16:53 +0200)
committerYuval Lifshitz <ylifshit@redhat.com>
Wed, 2 Feb 2022 14:53:21 +0000 (16:53 +0200)
Fixes: https://tracker.ceph.com/issues/54116
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
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;
     }
   }