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!