From: Casey Bodley Date: Tue, 24 Mar 2020 19:01:31 +0000 (-0400) Subject: radosgw-admin: fix infinite loop in 'datalog list' X-Git-Tag: v15.2.4~10^2~4^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=454cc20fd3b98f38d7a241b3f0e681288df2e233;p=ceph.git radosgw-admin: fix infinite loop in 'datalog list' affects datalog shards with more than 1000 entries Fixes: https://tracker.ceph.com/issues/44751 Signed-off-by: Casey Bodley (cherry picked from commit 166f38fe70e6afd2831bdb87a27c8fe757899b95) --- diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index fb463ea88c9d..249575c5990d 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -8560,7 +8560,7 @@ next: do { list entries; if (specified_shard_id) { - ret = datalog_svc->list_entries(shard_id, start_time.to_real_time(), end_time.to_real_time(), max_entries - count, entries, marker, NULL, &truncated); + ret = datalog_svc->list_entries(shard_id, start_time.to_real_time(), end_time.to_real_time(), max_entries - count, entries, marker, &marker, &truncated); } else { ret = datalog_svc->list_entries(start_time.to_real_time(), end_time.to_real_time(), max_entries - count, entries, log_marker, &truncated); }