Hi,

I'm trying to see if there's a way to detect that the Sync Gateway shadow 
bucket was reinitialized and hence delete the local DB to get rid of the 
documents that were replicated before the reset.
I was looking at the source code of the CBL_Replicator and saw the 
"lastSequence 
mismatch:" log statement, but didn't really find a public way to get to 
that information (would prefer avoiding swizzling ^^).
I know it might not be a "standard" use case, but still, if something goes 
horribly wrong and we have to that on the Sync Gateway, I would like our 
clients to recover from it.

So is what I'm asking possible?
How else would you handle this situation?

Note that we're only doing pull replication and never pushing any data from 
the clients.

Thanks for your help!

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/1bcf0610-ae58-4d32-a3ab-01092c7eef07%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to