Skip to content

Corrupted database where a document has 2 root revisions #2501

Answered by davisp
nono asked this question in Q&A
Discussion options

You must be logged in to vote

Hiya @nono,

This looks like either something was creating its own revisions or there was an accidental copying of revisions between documents that were then inserted using new_edits=false. A subtlety of the tree is that the the revision identifiers only have to be unique at the node level. Generally they're unique to the tree unless we get into shenangians around using new_edits=false in which case the actual constraints of the tree are much looser than what normally happens. And unfortunately a lot of the traversal algorithms assume unique revisions so when you specify them for some operations you may not be getting the one you expect.

Your best bet would be to purge the 11- revision so …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wohali
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #2501 on June 25, 2020 18:00.