]> git.apps.os.sepia.ceph.com Git - ceph-ci.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)
committerCasey Bodley <cbodley@redhat.com>
Fri, 22 Nov 2019 19:21:15 +0000 (14:21 -0500)
commit6f52900c817c536431f76de8f72ea9c94d5f2a99
treed070e2f3a3f1f4c057fef3c86b7919fb36624706
parenta078120512260c6ccf74acefe6f9f50e78803996
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>
src/cls/rgw/cls_rgw.cc