]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: use current period for InitSyncStatus
authorCasey Bodley <cbodley@redhat.com>
Fri, 26 Feb 2016 21:23:54 +0000 (16:23 -0500)
committerCasey Bodley <cbodley@redhat.com>
Fri, 4 Mar 2016 22:04:09 +0000 (17:04 -0500)
commit5434db9335ac23b96cc8d64c46e3d2eb78b68917
tree96b43e46e9b3a8bd9336646690f3779f9bfab922
parent762c075bb2b3cb0d388432a33966d27acc9e1e69
rgw: use current period for InitSyncStatus

the InitSyncStatus coroutine records the position to start incremental
sync after finishing a full sync.  this should be the master's marker
from the current period, rather than its oldest log period

this also adds a check to run_sync() that restarts a full sync if it
sees that our sync period is behind the master's oldest log period

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/rgw/rgw_sync.cc