From: Yuval Lifshitz Date: Wed, 2 Feb 2022 14:53:21 +0000 (+0200) Subject: rgw/admin: fix radosgw-admin datalog list max-entries issue X-Git-Tag: v18.0.0~1441^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F44866%2Fhead;p=ceph.git rgw/admin: fix radosgw-admin datalog list max-entries issue Fixes: https://tracker.ceph.com/issues/54116 Signed-off-by: Yuval Lifshitz --- diff --git a/src/rgw/rgw_datalog.cc b/src/rgw/rgw_datalog.cc index c64969712ae25..89e41471e11c7 100644 --- a/src/rgw/rgw_datalog.cc +++ b/src/rgw/rgw_datalog.cc @@ -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; } }