summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-11-15Testing of incremental attachments and more testing of multipart/handling.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@836324 13f79535-47bb-0310-9956-ffa450edef68
2009-11-14Better testing of multipart/relatedDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@836087 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13Remove debigging messagesDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@836032 13f79535-47bb-0310-9956-ffa450edef68
2009-11-13Initial check-in of APIs for multiple/related supported and incremental ↵Damien F. Katz
replication of only changed attachments. Needs more far more testing and to be hooked up the replicator. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@835981 13f79535-47bb-0310-9956-ffa450edef68
2009-11-10Add doc id validation when creating a new document with theJan Lehnardt
standalone attachment API. Closes COUCHDB-565. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@834436 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09wait 5 minutes before assuming a connection is staleAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@834212 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09better error for illegal_database_name. Closes COUCHDB-566Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@834211 13f79535-47bb-0310-9956-ffa450edef68
2009-11-09Fixes 'make distcheck' to run the test suite.Paul Joseph Davis
Quite a few changes to the build system to handle VPATH builds appropriately as well as make the test suite know about them. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833951 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05Minor reformating.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833219 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05typo, thanks David CoallierJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833038 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05add safety net for code accidents where the document id in a doc delete ↵Jan Lehnardt
request got missing accidentally git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@833036 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03Added batching of multiple updating requests, to improve throughput with ↵Damien F. Katz
many writers. Also removed the couch_batch_save module, now batch requests are simply saved async as immediately, batching with outhr updates if possible. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832550 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03only 1 timer at a time (e.g. flush/1). thanks tisba for the report. COUCHDB-539Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832519 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03eliminate new process flood after OS wakes from sleep. COUCHDB-539Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832477 13f79535-47bb-0310-9956-ffa450edef68
2009-11-03Allow updating a doc along with an attachment when posted from anJan Lehnardt
HTML form. Patch by Robert Newson. Closes COUCHDB-436. We still need tests for the entire form-upload function. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832427 13f79535-47bb-0310-9956-ffa450edef68
2009-11-02cast string status codes (from _externals) to integers before logging. ↵Adam Kocoloski
COUCHDB-551 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@832091 13f79535-47bb-0310-9956-ffa450edef68
2009-10-31List functions weren't returning OS processes.Paul Joseph Davis
Needed to add a call to couch_query_server:stop_map_doc/1 to return outstanding OS processes back to the query servers pools. This was causing some awesome errors by keeping the query_servers PID linked to the socket PID, which caused errors in apparently unrelated requests as the query_servers daemon was restarted on config changes. Also needed to move where the query servers were requested in list functions involving reduces. Map only lists were fine though. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@831502 13f79535-47bb-0310-9956-ffa450edef68
2009-10-29write config changes much faster - see COUCHDB-545. Thanks Gustavo NiemeyerAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@830832 13f79535-47bb-0310-9956-ffa450edef68
2009-10-28reboot replication from last checkpoint if DB is compacted or server restartsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@830737 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27Make it harder to accidently terminate chunked resposnes by requiring ↵Damien F. Katz
callers to explicity call last_chunk(Req) and ignoring send_chunk calls with no data. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@830353 13f79535-47bb-0310-9956-ffa450edef68
2009-10-27Fixed a minor bug with attachments of zero length.Paul Joseph Davis
The Erlang PID handling the request would crash after headers were sent so that the browser never noticed but my cURL client did. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@830056 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26_changes response might have completed alreadyAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829920 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26asking for a missing rev with ?rev or ?open_revs was a 500 responseAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829919 13f79535-47bb-0310-9956-ffa450edef68
2009-10-26replication client should use inactivity timeout on changes feedAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829871 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24Fixed the test for couch_stats_aggregator.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829456 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24use couch_util:priv_dir() b/c it works in dev mode tooAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829432 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24Update functions can now handle any HTTP verb, excepting GET and HEADJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829419 13f79535-47bb-0310-9956-ffa450edef68
2009-10-24Move stat descriptions out of the config.Paul Joseph Davis
This lists stat descriptions in an Erlang term file to avoid abusing the config system. Uses a file in CouchDB's priv directory that is a list of three-tuple terms. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829304 13f79535-47bb-0310-9956-ffa450edef68
2009-10-23improved speed and concurrency of config lookupsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@829123 13f79535-47bb-0310-9956-ffa450edef68
2009-10-22Improve OAuth error message for missing tokens.Paul Joseph Davis
Added a test in oauth.js git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@828836 13f79535-47bb-0310-9956-ffa450edef68
2009-10-20typoJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@827720 13f79535-47bb-0310-9956-ffa450edef68
2009-10-19Fix bug when lists use two design docs.Paul Joseph Davis
The language was being pulled from the wrong doc in the pair. Also removed some unused variables. Added a test in list_views.js git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@826692 13f79535-47bb-0310-9956-ffa450edef68
2009-10-18log external reqests like any other requestsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@826345 13f79535-47bb-0310-9956-ffa450edef68
2009-10-17have 'make dist' build a windows installer on windowsMark Hammond
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@826173 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15Add support for other OAuth signature methods in replication client.Jason David Davies
To use, set auth.oauth.signature_method to either "HMAC-SHA1" (the default if not specified) or "PLAINTEXT". git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825693 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15Only check for admin user if we are trying to create a database. Thanks to ↵Jan Lehnardt
Bob Dionne for testing the patch. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825485 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15also fix attachment redirectsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825407 13f79535-47bb-0310-9956-ffa450edef68
2009-10-15bugfixes for redirects in replication and iolists in OAuth qs paramsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825401 13f79535-47bb-0310-9956-ffa450edef68
2009-10-14Fix a bug in the couch.app generation.Paul Joseph Davis
The couch.app module list was using '*.erl' to list the modules. This causes issues if weird backup files are introduced into that directory. It appears that copying to and from HFS file systems can result in files with a prefix of '._' so that we had '._couch_server.erl' amongst other things which would then be in the couch.app module list, which would then prevent the server from booting properly. As in, it would just halt before any CouchDB code was ever run. The fix is to make the module list use "couch*.erl" instead. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@825268 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13Add more information to the view info objects.Paul Joseph Davis
View info is available at the URL: http://127.0.0.1:5984/db_name/_design/ddocid/_info New fields include: updater_running [true|false] : Whether the view is being built waiting_commit [true|false] : Whether this view is a head of db commits waiting_clients [integer] : How many clients are waiting on this view update_seq [integer] : The update sequence that has been indexed purge_seq [integer] : The purge sequence that has been processed Other fields for reference: signature [string] : The md5 signature of the design document's functions language [string] : The language of the design document disk_size [integer] : Number of bytes the view file occupies on disk compact_running [boolean] : Whether the view is currently being compacted git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824970 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13Fix partial view updating regression.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824968 13f79535-47bb-0310-9956-ffa450edef68
2009-10-13Fix new create_target replication option when OAuth is being used.Jason David Davies
Closes COUCHDB-525. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824954 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12Send 400 error when bad OAuth token is received.Jason David Davies
This closes COUCHDB-522. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824290 13f79535-47bb-0310-9956-ffa450edef68
2009-10-12Added handy log message for debugging OAuth behind proxies.Jason David Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824268 13f79535-47bb-0310-9956-ffa450edef68
2009-10-11add create_target:true option to _replicate that creates the target databaseJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@824029 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09allow case-insensitive content-type from external, and other cleanupAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@823378 13f79535-47bb-0310-9956-ffa450edef68
2009-10-05friendlier error message on bad log config file permissionsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@821856 13f79535-47bb-0310-9956-ffa450edef68
2009-10-03Fixes COUCHDB-517 UUID server restarts.Paul Joseph Davis
Patch by Robert Newson to avoid restarting the UUID gen_server on configuration changes which leads to OTP supervisor shutdowns when exceeding the restart frequency. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@821402 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02Add OAuth support for "https" URL scheme when using SSL proxy.Jason David Davies
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@821059 13f79535-47bb-0310-9956-ffa450edef68
2009-10-02replication bugfixes, see COUCHDB-516Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@820851 13f79535-47bb-0310-9956-ffa450edef68