]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: 'sync status' is not behind if there are no mdlog entries 45443/head
authorCasey Bodley <cbodley@redhat.com>
Fri, 6 Aug 2021 19:14:26 +0000 (15:14 -0400)
committerCory Snyder <csnyder@iland.com>
Wed, 16 Mar 2022 17:15:15 +0000 (13:15 -0400)
commitf2bc9b88ba9abfc3650e98c48995a4575150bb62
tree8678705776aa67e411071c98a2062388a6d6c939
parent065c9d29f7426c283cf80fed433ed59efc43fe5e
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>
(cherry picked from commit 14d43f740d101c8d41a2ced4525bf8efd8c9d943)
src/rgw/rgw_admin.cc