Added the following to my database.Changed handler, and documents are
deleting correctly now.
database.Changed += (sender, e) => {
> foreach (DocumentChange change in e.Changes)
> {
>
> if(change.IsCurrentRevision == false)
> {
> var changedoc = database.GetExistingDocument(
> change.DocumentId);
> changedoc.CurrentRevision.DeleteDocument();
> }
> }
> };
>
On Friday, March 13, 2015 at 3:37:07 PM UTC-7, Gavin Fowler wrote:
>
> I added some logging to our database Changed notification. It looks like
> we are getting a DocumentChange notification for the deleted documents,
> IsCurrentRevision is false. I'm guessing I need to resolve that somehow.
>
> On Friday, March 13, 2015 at 12:42:30 PM UTC-7, Jens Alfke wrote:
>>
>>
>> On Mar 13, 2015, at 12:01 PM, Gavin Fowler <[email protected]>
>> wrote:
>>
>> I've added some arguments to our script that launches sync_gateway. It
>> now looks like this...
>>
>>
>> I was suggesting turning on logging on the *client* side.
>>
>> I tried with camel case Sync, and SyncVerbose, but didn't see a
>> difference in the logs.
>>
>>
>> Those aren’t logging keywords known to Sync Gateway. iOS uses them, and
>> maybe .NET too.
>>
>> —Jens
>>
>
--
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/adc549b6-19d6-48ea-a25a-3b292a876342%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.