Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 84471 invoked from network); 21 Feb 2010 14:04:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Feb 2010 14:04:09 -0000 Received: (qmail 96029 invoked by uid 500); 21 Feb 2010 14:04:08 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 95947 invoked by uid 500); 21 Feb 2010 14:04:07 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 95937 invoked by uid 99); 21 Feb 2010 14:04:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2010 14:04:07 +0000 X-ASF-Spam-Status: No, hits=3.5 required=10.0 tests=NORMAL_HTTP_TO_IP,RCVD_IN_BL_SPAMCOP_NET,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [217.110.7.51] (HELO mail.sourcegarden.de) (217.110.7.51) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Feb 2010 14:03:58 +0000 Received: from [10.148.234.83] (tmo-105-163.customers.d1-online.com [80.187.105.163]) by mail.sourcegarden.de (Postfix) with ESMTP id E79971F76A9 for ; Sun, 21 Feb 2010 15:03:29 +0100 (CET) Message-Id: From: Mario Scheliga To: user@couchdb.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v936) Subject: Re: compact for everyone Date: Sun, 21 Feb 2010 15:03:28 +0100 References: <2E1AD6C4-7AD8-4A12-B77B-F6A7F052B221@sourcegarden.de> X-Mailer: Apple Mail (2.936) X-rccsoftware-MailScanner-Information: Please contact the ISP for more information X-rccsoftware-MailScanner-ID: E79971F76A9.E79EF X-rccsoftware-MailScanner: Found to be clean X-rccsoftware-MailScanner-SpamCheck: not spam, SpamAssassin (nicht zwischen gespeichert, Wertung=3.92, benoetigt 6, BAYES_00 -2.60, NORMAL_HTTP_TO_IP 0.00, RCVD_IN_BL_SPAMCOP_NET 1.96, RCVD_IN_PBL 0.91, RCVD_IN_SORBS_WEB 0.62, RCVD_IN_XBL 3.03, WEIRD_PORT 0.00) X-rccsoftware-MailScanner-SpamScore: sss X-rccsoftware-MailScanner-From: mario@sourcegarden.de X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No Hi Chris, i would love to get startet as a developer. My Erlang skills are near to zero, but give me a week ;-) thnx alot. greetz mario Am 21.02.2010 um 14:32 schrieb J Chris Anderson: > > On Feb 21, 2010, at 8:17 AM, Mario Scheliga wrote: > >> Hello CouchDB-Friends, >> >> i just playing around with couchdb 0.10.0 and i was wondering why i >> can trigger compaction without being admin, >> is this a bug? Or a Feature? > > It's sort of neither. Compaction is idempotent and we encourage > developers to code as though they never know when it will occur. On > the other hand, it does use resources so maybe it's best off > restricted to admins. > > The place to discuss making a change is the dev@ list. I'll tell > you, this would be a one-line patch (grep the source for > check_is_admin) so it's a great way to get started as a developer. > > Please continue the discussion on the dev list. > > Chris > > >> >> curl -vX POST http://127.0.0.1:5984/todoapp/_compact >> * About to connect() to 127.0.0.1 port 5984 (#0) >> * Trying 127.0.0.1... connected >> * Connected to 127.0.0.1 (127.0.0.1) port 5984 (#0) >>> POST /todoapp/_compact HTTP/1.1 >>> User-Agent: curl/7.19.7 (i386-apple-darwin9.8.0) libcurl/7.19.7 >>> zlib/1.2.3 >>> Host: 127.0.0.1:5984 >>> Accept: */* >>> >> < HTTP/1.1 202 Accepted >> < Server: CouchDB/0.10.0 (Erlang OTP/R13B) >> < Date: Sat, 30 Jan 2010 16:02:34 GMT >> < Content-Type: text/plain;charset=utf-8 >> < Content-Length: 12 >> < Cache-Control: must-revalidate >> < >> {"ok":true} >> >> >> ?? the admin-users are activated and i am using cookie-auth for >> other users. >> >> greetz >> mario >> >> >> -- >> Sourcegarden GmbH HR: B-104357 >> Steuernummer: 37/167/21214 USt-ID: DE814784953 >> Geschaeftsfuehrer: Mario Scheliga, Rene Otto >> Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929 >> Schoenhauser Allee 51, 10437 Berlin >> > -- Sourcegarden GmbH HR: B-104357 Steuernummer: 37/167/21214 USt-ID: DE814784953 Geschaeftsfuehrer: Mario Scheliga, Rene Otto Bank: Deutsche Bank, BLZ: 10070024, KTO: 0810929 Schoenhauser Allee 51, 10437 Berlin