nickva opened a new pull request, #6203:
URL: https://github.com/apache/couchdb/pull/6203

   Treat it as a new revision instead creating a broken rev tree.
   
   Since #6168 when we replicated a revision we already had locally, we kept 
its stored value (just updated the path, since it may have connected some 
ancestry paths together). However, since then, if a new rev's parent disagrees 
with the stored version's parent, for example, if we have stored 1-a -> 2-x -> 
3-c, and got 1-z -> 2-x, the path couldn't join the existing branch and became 
a new one with 2-x as a leaf that had nothing stored. That's an invalid rev 
tree, and after that, opening the doc (including _changes, _all_docs) would 
fail with a function clause.
   
   This was found thanks to Bryan Green.
   
   Related: #6170
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to