Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 50437 invoked from network); 28 Mar 2011 07:30:49 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Mar 2011 07:30:49 -0000 Received: (qmail 51541 invoked by uid 500); 28 Mar 2011 07:30:48 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 51393 invoked by uid 500); 28 Mar 2011 07:30:47 -0000 Mailing-List: contact dev-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list dev@couchdb.apache.org Received: (qmail 51371 invoked by uid 99); 28 Mar 2011 07:30:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2011 07:30:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Mar 2011 07:30:43 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id E232E83521 for ; Mon, 28 Mar 2011 07:30:05 +0000 (UTC) Date: Mon, 28 Mar 2011 07:30:05 +0000 (UTC) From: "Randall Leeds (JIRA)" To: dev@couchdb.apache.org Message-ID: <1377824650.16150.1301297405923.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <803081074.13206.1297547757547.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (COUCHDB-1065) couch_db_updater calls couch_key_tree incorrectly MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ 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