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: v16.2.8~60^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=635cbe0d6277add4e028d02ea1ccbfd724e5ef6a;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 (cherry picked from commit bd429ed9bec8aa4dc17c61a07e30987f50f7e5f6) --- diff --git a/src/rgw/rgw_datalog.cc b/src/rgw/rgw_datalog.cc index 140ef54cb3e3..550f08596b9c 100644 --- a/src/rgw/rgw_datalog.cc +++ b/src/rgw/rgw_datalog.cc @@ -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; } }