]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
radosgw-admin: 'sync status' is not behind if there are no mdlog entries 45442/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:14:52 +0000 (13:14 -0400)
commit60b9230d95273e9b3f064c210204dd59d7eb4a46
tree5aa4014971f716960204c89b87a471ab3bf92090
parent179a7bca8a84771b0dde09e26f7a2146a985df90
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