Thanks for your response Jens.

The reason I got myself into this pickle is because I was attempting to 
solve a problem where attachments were going missing during a conflict, so 
I was merging the _attachments dictionaries from the conflicted revisions 
to prevent attachment file loss. So I think the reason it caused this 
problem was because one of the attachments in the merged _attachments 
dictionary didn't exist in the new revisions parent attachments. So it 
failed to save, even though the attachment .blob file actually did exist on 
disk. For now I commented out my code that merged attachments and that 
resolved the conflict. But of course, I would have lost the reference to 
the attachment.

Maybe 2.0 has more robust attachment support.

Thanks,

Brendan

On Thursday, September 13, 2018 at 10:08:10 AM UTC-6, Jens Alfke wrote:
>
> I haven’t been inside the 1.x codebase in aeons, but IIRC 
> ‘parentAttachment’ is the attachment Dict in the parent revision of the 
> document. I’m not sure why it’s required to exist at that point; sorry...
>
> —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/9376a8da-c846-45b5-8dc1-8b0cfb971d83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to