ILYA created COUCHDB-2515:
-----------------------------
Summary: couch_db:delete/3 appear to be broken
Key: COUCHDB-2515
URL: https://issues.apache.org/jira/browse/COUCHDB-2515
Project: CouchDB
Issue Type: Bug
Security Level: public (Regular issues)
Components: Database Core
Reporter: ILYA
delete_doc/3 function packs Rev as a list [Rev]. However latter on the call
hits set_new_att_revpos where tuple is expected. Here is the call sequence:
Note that in
[delete_doc|https://github.com/apache/couchdb-couch/blob/master/src/couch_db.erl#L169
] revs is a list
Then
[here|https://github.com/apache/couchdb-couch/blob/master/src/couch_db.erl#L937
] we pass Doc as is to set_new_att_revpos
Finally we crash with function_clause in
[set_new_att_revpos|https://github.com/apache/couchdb-couch/blob/master/src/couch_db.erl#L1067]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)