]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: use new Stopped state for special handling of 'bucket sync disable' 33054/head
authorCasey Bodley <cbodley@redhat.com>
Mon, 3 Feb 2020 20:59:58 +0000 (15:59 -0500)
committerCasey Bodley <cbodley@redhat.com>
Wed, 5 Feb 2020 17:56:18 +0000 (12:56 -0500)
commitc4c58ccce4ba11335b6be4bb0b870cfe3c2c30c5
tree6634d50f4dbfd6c0996564687086bcb639a13a65
parent161ea6edb6f8215a8833c709b4aad2c5f3eeffc6
rgw: use new Stopped state for special handling of 'bucket sync disable'

some sync modules like pubsub can disable full sync, and only run
incremental sync. without full sync, 'bucket sync disable/enable' will
continuously restart incremental sync from the beginning of the bilog

this adds a new Stopped state for 'bucket sync disable', which leaves the
incremental marker position where it is (just past the SYNCSTOP entry).
this means that when sync is reenabled, it can continue sync from where
it left off

Fixes: https://tracker.ceph.com/issues/43768
Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_data_sync.cc
src/rgw/rgw_data_sync.h
src/rgw/rgw_json_enc.cc