couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Randall Leeds (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (COUCHDB-1065) couch_db_updater calls couch_key_tree incorrectly
Date Mon, 28 Mar 2011 07:30:05 GMT

     [ https://issues.apache.org/jira/browse/COUCHDB-1065?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Randall Leeds updated COUCHDB-1065:
-----------------------------------

    Attachment: couchdb_1065.patch

Here's a patch which includes the tests posted by Jan.

The fun passed to map_leafs/2 was taking the wrong parameters and also expecting #rev_info
records as they are in the by_seq_btree but the key tree being mapped here is the by_id_btree
whose rev_tree values are just a tuple {IsDeleted, BodyPointer, UpdateSeq}.

> couch_db_updater calls couch_key_tree incorrectly
> -------------------------------------------------
>
>                 Key: COUCHDB-1065
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1065
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>            Reporter: Bob Dionne
>             Fix For: 1.0.3, 1.1
>
>         Attachments: couchdb_1065.patch
>
>
> couch_db_updater at line 123 calls couch_key_tree:map_leafs( fun(RevInfo) -..... incorrectly.
The function needs to have two arguments.
> This is readily seen by creating two small dbs with a doc in each having the same id,
replicating one to the other and then calling
> _purge

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message