summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2010-10-20non-blocking creation of new view groups, COUCHDB-900Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1025563 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16Reformatting and organizing better the export statements.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1023353 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16Replicator: deal with 303 HTTP redirects. Closes COUCHDB-918.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1023345 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16Replicator: use pattern matching with the #url record instead of the raw tuple.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1023276 13f79535-47bb-0310-9956-ffa450edef68
2010-10-16Replicator: fix issues when a peer is accessible via SSL.Filipe David Borba Manana
Closes COUCHDB-491. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1023274 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14Fixed typo in comment.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1022621 13f79535-47bb-0310-9956-ffa450edef68
2010-10-14like in view, check content_type on POST /db/_all_docsBenoit Chesneau
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1022447 13f79535-47bb-0310-9956-ffa450edef68
2010-10-13get _changes on specific docidsBenoit Chesneau
/POST /db/_changes {"doc_ids": ["docid1", ...]} git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1022291 13f79535-47bb-0310-9956-ffa450edef68
2010-10-12Avoid gen_server call timeout error after compacting a database (seems to ↵Filipe David Borba Manana
happen only for large DBs, but not always). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1021811 13f79535-47bb-0310-9956-ffa450edef68
2010-10-10Avoid view regeneration for new ETags support.Paul Joseph Davis
This reverts the group signature calculation to use a tuple that would've been generated before changing the view record definition. New ETag's will automatically be supported when people run their next index update. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1006345 13f79535-47bb-0310-9956-ffa450edef68
2010-10-10Fixes COUCHDB-799 - More granular ETags for views.Paul Joseph Davis
ETags for views now only change when their underlying view index changes due to indexing or purges. ETags are also specific to each view. Thanks to Klaus Trainer for the patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1006339 13f79535-47bb-0310-9956-ffa450edef68
2010-10-09Bug fix: when receiving the compact_done message, make sure the gen_server ↵Filipe David Borba Manana
unlinks itself from the compactor process and purges the compactor's exit message from its mailbox. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1006181 13f79535-47bb-0310-9956-ffa450edef68
2010-10-02using an infinity timeout in places where we wait on disk ioJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003723 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01remove vestigal db handle that will just be replaced by couch_view_updater ↵John Christopher Anderson
anyway git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003706 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01close db handles after using them to get view groupsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003701 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01downgrade log line from error to debug outputJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003620 13f79535-47bb-0310-9956-ffa450edef68
2010-10-01Remove no longer necessary include macro (forgotten in revision 963038).Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003475 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30fix badmatch for COPY call with missing Destination header.Robert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003050 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30Revert "COUCHDB-903 - add {ok, true} to COPY result."Robert Newson
This reverts commit 5d918e616119e308ca38dc847dd8165e089557dc. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003044 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30COUCHDB-903 - add {ok, true} to COPY result.Robert Newson
Thanks to Bob Dionne for original patch. I've modified it to fix the badmatch error if you do COPY without a Destination header. It now yields a 400 (Bad Request) error without spewing a stack trace. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003035 13f79535-47bb-0310-9956-ffa450edef68
2010-09-30Removing ?getv macros.Filipe David Borba Manana
With OTP releases up to R13B03 it's not possible to define a 2 macro functions with the same name and different arities. (Only allowed in R13B04 and R14). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1003025 13f79535-47bb-0310-9956-ffa450edef68
2010-09-29Add missing expression to close the database (COUCHDB-892 related).Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1002810 13f79535-47bb-0310-9956-ffa450edef68
2010-09-28Replicator fix: for a filtered replication, the replication ID should take ↵Filipe David Borba Manana
into account the filter function's code and not only its name. Closes COUCHDB-892. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1002259 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27CommonJS support in map functionsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1001895 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27Replacing calls to couch_util:get_value with ?getvFilipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1001879 13f79535-47bb-0310-9956-ffa450edef68
2010-09-27Adding new macro ?getv as an alias to couch_util:get_value.Filipe David Borba Manana
That function is used so often by most (if not all) modules that it deserves a small macro to help keeping the code short. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1001863 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25Explicitely close the file descriptor. It doesn't hurt.Filipe David Borba Manana
Also, since we open the file in 'raw' mode, I suspect the file descriptor is not closed when the couch_file server dies. From erl -man file: "The raw option allows faster access to a file, because no Erlang process is needed to handle the file." For me, no Erlang process handling the file means that it's likely the file is not closed by any other process. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1001196 13f79535-47bb-0310-9956-ffa450edef68
2010-09-25Bug fix: a user context record was being used instead of a PID.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1001184 13f79535-47bb-0310-9956-ffa450edef68
2010-09-24Upgrading ibrowse from version 1.6.2 to 2.0.1.Filipe David Borba Manana
This version fixes a serious issue regarding streaming of chunked HTTP(S) responses. The issue is that the client occasionally gets blocked or receives a timeout (if inactivity_timeout parameter is given to ibrowse). This fixes part of ticket COUCHDB-491. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1000880 13f79535-47bb-0310-9956-ffa450edef68
2010-09-22Removing duplicated code.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1000156 13f79535-47bb-0310-9956-ffa450edef68
2010-09-22Replicator: avoid percent encoding the slashes of design and local document IDs.Filipe David Borba Manana
This avoids receiving and following redirect responses from the peer. It also removes the eventual need of special rules in proxies (like Apache httpd). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@1000140 13f79535-47bb-0310-9956-ffa450edef68
2010-09-20Fix badarity error when the changes timeout is undefined or set to infinity.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@998898 13f79535-47bb-0310-9956-ffa450edef68
2010-09-18Added peer information to debug message.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@998530 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16Correcting ibrowse version number.Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@997675 13f79535-47bb-0310-9956-ffa450edef68
2010-09-16Replicator bug fix: properly stop link worker processes to avoid noproc ↵Filipe David Borba Manana
exceptions crashing the replicator's changes feed reader process. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@997547 13f79535-47bb-0310-9956-ffa450edef68
2010-09-14Replicator bug fix: make sure a replication fails when there's a stale ↵Filipe David Borba Manana
connection to a remote DB's _changes. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@997152 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13Replicator changes:Filipe David Borba Manana
1) avoid badmatch exceptions when there's a failure opening a single document from a remote source; 2) add error log messages describing which remote documents couldn't be opened and why; 3) when replications errors can't be encoded as json, convert and send them as json strings git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996492 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13Bug fixes:Filipe David Borba Manana
1) requests to remote /db/_changes were discarding the proxy options; 2) handle redirect code 302 besides 301 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996458 13f79535-47bb-0310-9956-ffa450edef68
2010-09-13Bug fix: add missing case for not preserving HTTP basic auth credentials ↵Filipe David Borba Manana
after a redirect for _changes git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996399 13f79535-47bb-0310-9956-ffa450edef68
2010-09-12Fix previous revision (module prefix not included)Filipe David Borba Manana
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996293 13f79535-47bb-0310-9956-ffa450edef68
2010-09-12Replicator bug fix: redirect from remote /db/_changes not properly handled ↵Filipe David Borba Manana
(discarded user supplied HTTP Basic auth credentials) git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@996292 13f79535-47bb-0310-9956-ffa450edef68
2010-09-10Bug fix: replicator proxy option ignored.Filipe David Borba Manana
Thanks James Jackson for finding and reporting the bug. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@995631 13f79535-47bb-0310-9956-ffa450edef68
2010-09-09Refactor changes module to allow for accumulators with the callback ↵Filipe David Borba Manana
(optional, doesn't break public API). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@995528 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07fix issue #COUCHDB-230 . now it's possible to do */test =Benoit Chesneau
/db/_design/test or even example.com/test = /db/_design/test and other stuff already possible with vhost manager. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@993558 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07improve rewriter. No< it's possible to pass a variable in path as <var>Benoit Chesneau
so you can do /somepath/<var>something or /somepath/<var>.txt ... git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@993532 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07remove extra log statementJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@993229 13f79535-47bb-0310-9956-ffa450edef68
2010-09-07warn when a view query will be empty due to backwards start and end keysJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@993226 13f79535-47bb-0310-9956-ffa450edef68
2010-09-02fix warnings in couch_httpd_db.erlRobert Newson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@992070 13f79535-47bb-0310-9956-ffa450edef68
2010-08-31validate input strings containing escape characters, COUCHDB-875Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@991073 13f79535-47bb-0310-9956-ffa450edef68
2010-08-25COUCHDB-161 - range support. Adhere closer to the spec. correct range ↵Robert Newson
parsing error in mochiweb. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@988866 13f79535-47bb-0310-9956-ffa450edef68