]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: incremental data sync uses truncated flag to detect end of listing
authorCasey Bodley <cbodley@redhat.com>
Wed, 15 Aug 2018 20:04:37 +0000 (16:04 -0400)
committerJonathan Brielmaier <jbrielmaier@suse.de>
Thu, 27 Sep 2018 07:19:18 +0000 (09:19 +0200)
commit8bb877e1636b84ae2c569c9a6ea153b6cdbdaf36
tree29a8b2a66491f0ccdc02e062cf7d6b7920d15c3e
parent1fdbedfc6a08ac9363ac6b3a3390cda1f877ed9e
rgw: incremental data sync uses truncated flag to detect end of listing

we call wait() after incremental sync if we've reached the end of the
datalog listing. the existing logic compares our local marker with the
remote's high marker, with some extra code to handle the case where the
remote log was trimmed

all of this can be simplified by using the 'truncated' flag returned
with the RGWReadRemoteDataLogShardCR used to list the remote datalog

Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit fb2b618658d8ff9c311838f59e396ab24c21e9e8)
Signed-off-by: Jonathan Brielmaier <jbrielmaier@suse.de>
Conflicts:
src/rgw/rgw_data_sync.cc: write log with ldout
src/rgw/rgw_data_sync.cc