couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mario Scheliga <ma...@sourcegarden.de>
Subject Re: compact for everyone
Date Sun, 21 Feb 2010 14:03:28 GMT
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


Mime
View raw message