]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: 'sync status' is not behind if there are no mdlog entries 42708/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 6 Aug 2021 19:14:26 +0000 (15:14 -0400)
committerCasey Bodley <cbodley@redhat.com>
Fri, 6 Aug 2021 20:13:16 +0000 (16:13 -0400)
commit14d43f740d101c8d41a2ced4525bf8efd8c9d943
treed7493a3a2f92be7c4829a844e6cac817e510dee8
parentca83705eabb9e9b05f9f1cf3fa39dceda21fd4f8
radosgw-admin: 'sync status' is not behind if there are no mdlog entries

if remote mdlogs are trimmed prematurely, sync status will report
that it's behind the remote's max-marker even if there are no mdlog
entries to sync

for each behind shard, we fetch the next mdlog entry from the remote. if
we get an empty listing, remove that shard from behind_shards. this
logic now has to run before we print "behind shards:" so that empty
shards aren't listed

Fixes: https://tracker.ceph.com/issues/52091
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_admin.cc