]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
radosgw-admin: fix infinite loop in 'datalog list' 34989/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 24 Mar 2020 19:01:31 +0000 (15:01 -0400)
committerNathan Cutler <ncutler@suse.com>
Mon, 11 May 2020 15:21:19 +0000 (17:21 +0200)
affects datalog shards with more than 1000 entries

Fixes: https://tracker.ceph.com/issues/44751
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 166f38fe70e6afd2831bdb87a27c8fe757899b95)

src/rgw/rgw_admin.cc

index fb463ea88c9da5fe7dae22d7421c24be9d0046b4..249575c5990d504c5f9449acfb6afd11a4db3635 100644 (file)
@@ -8560,7 +8560,7 @@ next:
     do {
       list<rgw_data_change_log_entry> 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);
       }