]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
cls/rgw: only promote instance entries if they sort after current instance
authorCasey Bodley <cbodley@redhat.com>
Wed, 30 Oct 2019 15:21:06 +0000 (11:21 -0400)
committerNathan Cutler <ncutler@suse.com>
Tue, 21 Jan 2020 22:12:53 +0000 (23:12 +0100)
commit625b89b6dde95f286dfd9cbabe5dae981848d9f0
tree92a25bd858b1e6dc5368ce56eb6fb519dcdd4457
parent760f94de8ffcc903bbcf2b60cd3d24fd6908157b
cls/rgw: only promote instance entries if they sort after current instance

to support bidirectional replication, where each zone could create its
own instances with the same olh epoch, the sort order of those instances
should be used to determine whether an entry should be promoted over the
current instance

Fixes: https://tracker.ceph.com/issues/39142
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 6f52900c817c536431f76de8f72ea9c94d5f2a99)
src/cls/rgw/cls_rgw.cc