]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: multisite log trimming only checks peers that sync from us
authorCasey Bodley <cbodley@redhat.com>
Fri, 12 Apr 2019 20:30:19 +0000 (16:30 -0400)
committerAshish Singh <assingh@redhat.com>
Fri, 26 Apr 2019 11:08:21 +0000 (16:38 +0530)
commit00a1210cde5dff44f826570272a097d166b6bcf9
tree1a8672c9953d460fbe4d5abf62545797ea1afee3
parentf4139a88ed5c8b43d423ec43162efae25feb7b68
rgw: multisite log trimming only checks peers that sync from us

if there are peer zones in our zonegroup that do not sync from us, they
won't have any sync status that corresponds to our logs. fetching their
status will give us empty markers, so we'll never make progress with log
trimming

the get_zone_data_notify_to_map() contains only the zones that are
configured to sync from us, so use that instead of get_zone_conn_map()

Fixes: http://tracker.ceph.com/issues/39283
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 3d52f30e6e11ccc22bce86c8c1e1054c6fdb97a6)
src/rgw/rgw_data_sync.cc
src/rgw/rgw_sync_log_trim.cc