// Restart any active syncing (i.e., any persistant replications).
- (void) restartSyncing {
NSArray* repls = [currentDatabase replications];
for (CouchPersistentReplication* repl in repls) {
[repl restart];
}
}
When I enable lots of TouchDB logging, I see a flurry of activity after invoking this method, but no errors are logged, nor are do the document IDs for the two documents show up in any of the log messages. I'm happy to send along the log, if that'd be useful, though I'd like to learn how to diagnose these problems.
I also tried using the app's Sign Out/Sign In buttons, which deletes the CouchPersistentReplication objects and recreates them, but that didn't seem to get the documents to replicate either.
Is there some way to diagnose why these documents have not replicated?
And is there a recommended way to "reset" replication on the device so it tries to replicate those documents again?
Is there anything else I can do to help these users get their databases replicated completely? Any chance there's a way that I can cobble a workaround together to hit the replication checkpoint with a big hammer until there is an official "reset" API? I'm OK with it taking a long time to replicate after the reset.