From 166f38fe70e6afd2831bdb87a27c8fe757899b95 Mon Sep 17 00:00:00 2001 From: Casey Bodley Date: Tue, 24 Mar 2020 15:01:31 -0400 Subject: [PATCH] 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 --- src/rgw/rgw_admin.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rgw/rgw_admin.cc b/src/rgw/rgw_admin.cc index 99285b444434..736e386b8b7d 100644 --- a/src/rgw/rgw_admin.cc +++ b/src/rgw/rgw_admin.cc @@ -8551,7 +8551,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); } -- 2.47.3