if ($equal(remoteLastSequence, localLastSequence)) {
_lastSequence = localLastSequence;
if (!_lastSequence) {
// Try to get the last sequence from the local checkpoint document
// created only when importing a database. This allows the
// replicator to continue replicating from the current local checkpoint
// of the imported database after importing.
_lastSequence = [self getLastSequenceFromLocalCheckpointDocument];
}
LogTo(Sync, @"%@: Replicating from lastSequence=%@", self, _lastSequence);
} else {
LogTo(Sync, @"%@: lastSequence mismatch: I had %@, remote had %@ (response = %@)",
self, localLastSequence, remoteLastSequence, response);
}