From dev-return-10142-apmail-couchdb-dev-archive=couchdb.apache.org@couchdb.apache.org Wed Jun 09 09:15:01 2010 Return-Path: Delivered-To: apmail-couchdb-dev-archive@www.apache.org Received: (qmail 3743 invoked from network); 9 Jun 2010 09:15:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Jun 2010 09:15:01 -0000 Received: (qmail 39020 invoked by uid 500); 9 Jun 2010 09:15:00 -0000 Delivered-To: apmail-couchdb-dev-archive@couchdb.apache.org Received: (qmail 38783 invoked by uid 500); 9 Jun 2010 09:14:58 -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 38775 invoked by uid 99); 9 Jun 2010 09:14:57 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jun 2010 09:14:57 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED,NORMAL_HTTP_TO_IP,WEIRD_PORT X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Jun 2010 09:14:54 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o599EXW3012562 for ; Wed, 9 Jun 2010 09:14:33 GMT Message-ID: <1537494.121276074873147.JavaMail.jira@thor> Date: Wed, 9 Jun 2010 05:14:33 -0400 (EDT) From: "Filipe Manana (JIRA)" To: dev@couchdb.apache.org Subject: [jira] Commented: (COUCHDB-789) revs_limit reset after DB compaction In-Reply-To: <29349228.27331276013411387.JavaMail.jira@thor> 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-789?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12877000#action_12877000 ] Filipe Manana commented on COUCHDB-789: --------------------------------------- Ah, true. Somehow I got distracted and putted it before the loop. Thanks Adam. > revs_limit reset after DB compaction > ------------------------------------ > > Key: COUCHDB-789 > URL: https://issues.apache.org/jira/browse/COUCHDB-789 > Project: CouchDB > Issue Type: Bug > Components: Database Core > Affects Versions: 0.11 > Reporter: Filipe Manana > Fix For: 1.1 > > Attachments: revs_limit_preserved_after_db_compaction.patch > > > As reported by Erick Johnson in the users mailing list, after compaction, the revs_limit parameter is not preserved. > Can easily be tested with: > $ curl -XPUT http://erick:foobar@127.0.0.40:5984/testing-compaction > {"ok":true} > $ curl -XPUT http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit -d "100" > {"ok":true} > $ curl http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit > 100 > $ curl -XPOST http://erick:foobar@127.0.0.40:5984/testing-compaction/_compact > {"ok":true} > $ curl http://erick:foobar@127.0.0.40:5984/testing-compaction/_revs_limit > 1000 > The following patch fixes it. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.