couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ILYA (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-2515) couch_db:delete_doc/3 appear to be broken
Date Mon, 15 Dec 2014 22:16:13 GMT

    [ https://issues.apache.org/jira/browse/COUCHDB-2515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14247319#comment-14247319
] 

ILYA commented on COUCHDB-2515:
-------------------------------

You can base test case on 
https://github.com/iilyak/couchdb-couch/blob/0a5ce8167d89371ba0bffab8fd45e6363c07b316/test/couchdb_compaction_tests.erl#L124

> couch_db:delete_doc/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
>            Priority: Minor
>
> 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)

Mime
View raw message