summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
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
2009-08-29merge cascading auth patch by Jason Davies, closes COUCHDB-478, fix testsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@809134 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28fix pattern matching bug in redirects for replicationAdam Kocoloski
if opening the DB returns 301, use the new URL for the rest of the replication git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808876 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28couch_rep_httpc should know about 503sAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808741 13f79535-47bb-0310-9956-ffa450edef68
2009-08-28guard against non-existing filters in _changesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808716 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27Fixed spurious console errors caused when attempting to query information ↵Damien F. Katz
about an already closed socket. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808679 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27Fix for problem where HEAD requests that would have a chunked responses ↵Damien F. Katz
would send the chunked respone anyway. Also, we now avoid processing the request, and instead abort it as soon as the header is sent. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808632 13f79535-47bb-0310-9956-ffa450edef68
2009-08-27send deleted docs to _changes filtersAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@808574 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25fix a process leak in local changes feed consumerAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807477 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25disable gen_server timeouts for internal replication processesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807473 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25use _ensure_full_commit?seq=N in replication for efficiencyAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807461 13f79535-47bb-0310-9956-ffa450edef68
2009-08-25_ensure_full_commit?seq=N to ensure everything up to N is committedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807459 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24only save a checkpoint at the end if something changedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807360 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24overlooked a function clauseAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807354 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24also follow 302 for _changes feedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807345 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24follow 302s in replicationAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807342 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24checkpoint at most once per 5 secondsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807320 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24more precise and accurate calculation of replication progressAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807308 13f79535-47bb-0310-9956-ffa450edef68
2009-08-24skip full_commit during replication when its safeAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@807208 13f79535-47bb-0310-9956-ffa450edef68