]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: bucket sync only allows one olh op at a time 24056/head
authorCasey Bodley <cbodley@redhat.com>
Sun, 10 Jun 2018 14:10:05 +0000 (10:10 -0400)
committerNathan Cutler <ncutler@suse.com>
Wed, 12 Sep 2018 16:50:41 +0000 (18:50 +0200)
commit667b18e02fbaa63660870f08f6be3d66660e70bb
tree1885d6a4a5a534f3923c0178dca2df5cd013b582
parentb99562f2d87a8dab0cb34c4ac11edb2652bbb909
rgw: bucket sync only allows one olh op at a time

if olh operations on different instances of an object race to sync,
their olh epochs could be applied in the wrong order and result in one
operation being rejected by the olh log. serialize olh operations on the
same object name to prevent this from happening

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit d120ca1734d247a1b8c78e1a8bfd7441f4fef8b4)

Conflicts:
    src/rgw/rgw_data_sync.cc
- replaced tn->log with ldout
src/rgw/rgw_data_sync.cc