summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-09-29Add ETap to CouchDB's SVN repository.Paul Joseph Davis
This pulls in ETap as an included dependency. As per directions of the ASF the NOTICE and LICENSE have been updated. Tests have been updated to include etap on Erlang's code path. license.skip was updated for make distcheck. This only affects running the Erlang test suite. Noah is awesome. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819799 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29all hail paul davisNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819780 13f79535-47bb-0310-9956-ffa450edef68
2009-09-29commented out lineNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819778 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28added rsa moduleNoah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819773 13f79535-47bb-0310-9956-ffa450edef68
2009-09-28we were skipping 1/1000 updates replicating old servers w/o _changesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819436 13f79535-47bb-0310-9956-ffa450edef68
2009-09-26Fix the UUID's test failures when clocks are out of sync.Paul Joseph Davis
Changes the tests for cache busting by using ETag's. Left the date tests commented out just in case someone thinks I'm crazy and sees a better solution. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@819091 13f79535-47bb-0310-9956-ffa450edef68
2009-09-25Fix speling.Jason David Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818930 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24have cookie auth use ini-file adminsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818437 13f79535-47bb-0310-9956-ffa450edef68
2009-09-24update the AuthSession cookie even if no Set-Cookie is already presentAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818357 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23Include peer in req object for externals: _show, _list, _update etc.Jason David Davies
Closes COUCHDB-470. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818316 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23reject attempts to upload invalid UTF-8 JSON. Closes COUCHDB-345Adam Kocoloski
This patch requires JSON to be encoded using UTF-8. In the future we will accept other encodings. Thanks Joan Touzet and James Dumay for the bug reports and Curt Arnold for patches and discussion. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818249 13f79535-47bb-0310-9956-ffa450edef68
2009-09-23give the server a second to terminate (suppress spurious stats warnings)Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@818132 13f79535-47bb-0310-9956-ffa450edef68
2009-09-22_externals should respect os_process_timeout settingAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817749 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21attempt at gentler replication shutdown when one of the DBs is deletedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817403 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21quietly start a new connection if changes feed is closedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817400 13f79535-47bb-0310-9956-ffa450edef68
2009-09-21bugfix for _changes when DB is deleted mid-responseAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817398 13f79535-47bb-0310-9956-ffa450edef68
2009-09-20remove some unneeded opening, closing and passing around of DbJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@817003 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17Fixes COUCHDB-396Paul Joseph Davis
Makes the stats calculated over a moving window isntead of calculated for non-overlapping timeframes. This should make trend monitoring more robust. Thanks once again to Bob Dionne for double checking this. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@816043 13f79535-47bb-0310-9956-ffa450edef68
2009-09-17Fixes COUCHDB-504Paul Joseph Davis
Thanks to Bob Dionne for figuring out the underlying cause. Thanks to Benoit for making my initial patch alot cleaner. This version is basically Benoit's patch with two extra conditions for sending the Keep-Alive header. It must be a HTTP/1.0 connection and there must not be a Connection header already defined. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@816033 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16include_docs now take an _id (as well as a _rev) in the emitted value, to ↵John Christopher Anderson
load docs other than the one doing the emitting. This means you can have one doc list a set of other docs to load in a single query. Enjoy! git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815984 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16Single line http request when log=infoDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815927 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16GC isn't happening for this process b/c heap is too small, so trigger it ↵Adam Kocoloski
manually git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815921 13f79535-47bb-0310-9956-ffa450edef68
2009-09-16add limit to _changesJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815629 13f79535-47bb-0310-9956-ffa450edef68
2009-09-15fix attachments with an undefined Content-Length header and no TE, patch by ↵Jan Lehnardt
Benoit Chesneau, closes COUCHDB-497 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@815308 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14Fix speling.Jason David Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814921 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14View refactoring and addition of raw collationoption. Significant ↵Damien F. Katz
performance improvements in view indexer. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814893 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14finish committing my changes adventure. pardon the dust.John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814828 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14rollback mixed up commit, builds nowJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814803 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14support for deletions in changes feedJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814787 13f79535-47bb-0310-9956-ffa450edef68
2009-09-14removed _all_docs_by_seq in favor of _changesJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814778 13f79535-47bb-0310-9956-ffa450edef68
2009-09-13allow config callbacks to get passed the X-Couch-Persist flagJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814300 13f79535-47bb-0310-9956-ffa450edef68
2009-09-13adhere X-Couch-Persist for DELETEsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814299 13f79535-47bb-0310-9956-ffa450edef68
2009-09-12bugfixes in supervision tree specificationsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814189 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11Refactoring of endkey code in views and btrees. End key functionaility is ↵Damien F. Katz
now handled inside the btree code, simplfying calling code and making it trivial to add new collation options git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@814078 13f79535-47bb-0310-9956-ffa450edef68
2009-09-11fix oauth access to design documents, patch by Jason DaviesJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@813803 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09oopsieAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@813102 13f79535-47bb-0310-9956-ffa450edef68
2009-09-09choice of uuid algos for better insert perf. Closes COUCHDB-465. Thanks ↵Adam Kocoloski
rnewson, bitdiddle git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@813051 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06Fix for building CouchDB on Snow Leapord.Paul Joseph Davis
I was unable to track down the root cause of this bug, but for some reason, having -ljs in the link command for couch_erl_driver was causing a segfault when loading the latter in Erlang. This patch just removes -ljs from the global LIBS variable and places it specificially in the libs for couchjs. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@811910 13f79535-47bb-0310-9956-ffa450edef68
2009-09-06check if either history is empty, not bothAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@811868 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05thou shalt make before thou commit, thou shalt make before thou commit, thou ↵Jan Lehnardt
shalt make before thou commit git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@811710 13f79535-47bb-0310-9956-ffa450edef68
2009-09-05code =~ s/imperative/declarative & faster/, thanks to Kostis Sagonas for ↵Jan Lehnardt
pointing these out, more to come git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@811709 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02skip some regex etc. if DB is already openAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810729 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02use the same password hash calculation for user creation via ini file and ↵Jan Lehnardt
user db, patch by Benoit Chesneau, closes COUCHDB-492 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810435 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02fix buildJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810432 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02fix continuous replication occurring after identical normal oneAdam Kocoloski
Both forms of replication had the same child ID in the replication supervisor. As a result, a continuous replication triggered after an otherwise-identical normal replication would "forget" that it was continuous. The tricky part about this patch is that it lets a normal and a continuous replication with the same source and target execute simultaneously. That's inefficient, but other solutions are convoluted or give surprising results to the client. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810358 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02Support for replication over SSL. Resolves COUCHDB-491Adam Kocoloski
This turned out to be a decent amount of work, since: 1) ibrowse did not use SSL on dedicated connections. Wrote a simplistic patch, will contact Chandru for further discussion. 2) When nginx is used for the SSL wrapper, it wants to buffer the changes feed. Setting "proxy_buffering off" in nginx.conf helps, but some buffering still occurred. Fixed by making couch_rep_changes_feed smart enough to split merged chunks. 3) The Erlang ssl application showed instabilities when used with {active,once}. Switched to the "new implementation" using {ssl_imp, new} and instabilities disappeared. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810350 13f79535-47bb-0310-9956-ffa450edef68
2009-09-02Added 3 stage pipeline for indexing views: loader, mapper, writer. This ↵Damien F. Katz
results in better performance and resource utilization. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@810345 13f79535-47bb-0310-9956-ffa450edef68
2009-09-01remove debugging leftoverJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@809977 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30use a POSIX-compatible invocation of basenameAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@809407 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30refactor CouchDB startup procedure, see COUCHDB-216 for detailsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@809392 13f79535-47bb-0310-9956-ffa450edef68