]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: bucket sync transitions back to StateInit on OP_SYNCSTOP 23574/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 14 Aug 2018 18:06:40 +0000 (14:06 -0400)
committerCasey Bodley <cbodley@redhat.com>
Tue, 14 Aug 2018 18:38:32 +0000 (14:38 -0400)
commitd7725a091890cd8e52938c070cc15da3fe57a9e7
tree85b0f9b792615f8cdf57e5f3470b8a0d44682310
parent6c6917bca167819e890d1df3aa52b31a8f070e26
rgw: bucket sync transitions back to StateInit on OP_SYNCSTOP

the handling for OP_SYNCSTOP->OP_RESYNC is incorrect because it's not
safe to continue incremental sync after SYNCSTOP. any changes between
SYNCSTOP and RESYNC will not be written to the bilog, so incremental
sync cannot sync them

SYNCSTOP now transitions back to StateInit, where
RGWInitBucketShardSyncStatusCoroutine will query the remote bilog info
to see if it's still disabled. if so, it deletes the sync status object
and finishes. otherwise, StateInit will transition back to StateFull to
resync the bucket

Fixes: http://tracker.ceph.com/issues/26895
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc