summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-03-21provide a 404 response on deletion of non-existant docsJohn Christopher Anderson
closes COUCHDB-297 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756948 13f79535-47bb-0310-9956-ffa450edef68
2009-03-21Fix for COUCHDB-300. Old seq were being removed when a conflict. An old bug, ↵Damien F. Katz
but recent changes made it much more likely to happen. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756925 13f79535-47bb-0310-9956-ffa450edef68
2009-03-20map queries with group=true query option will return an error.John Christopher Anderson
closes COUCHDB-185. changes to jquery.couch.js to support ajaxOptions may be useful for more than just openDoc, will need to be spread to the rest of the API. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756413 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19Bring back Futon attachment uploading that was removed in the recent ↵Christopher Lenz
rep_security merge. Should close COUCHDB-295. Ideally this would have a test, but that will need some trickery. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756186 13f79535-47bb-0310-9956-ffa450edef68
2009-03-19inclusive_end query option for views, defaults to true (does not change ↵John Christopher Anderson
current behavior). inclusive_end=false treats endkey as an open interval. this is progress on COUCHDB-194. I think it is enough for 0.9, we can discuss switching the default behavior, and adding a similar option for startkey. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755926 13f79535-47bb-0310-9956-ffa450edef68
2009-03-18remove MOVE requests as they can't sensibly be supported and COPY & DELETE ↵Jan Lehnardt
does the same thing git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755575 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16sensible error message if doc._rev is null or a numberJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755023 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16Adding the necessary done=true to the last race condition fix in the ↵Damien F. Katz
replicator. Thanks Adam. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755016 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16Fix for occasional replication failure where replication would complete ↵Damien F. Katz
before before the caller had a chance to request the results. No tests, but this should fix this error that already occurs occasionally: {"error":"normal","reason":"{gen_server,call,[<0.228.0>,get_result,infinity]}"} git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755009 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16Fix for problem with btree folds getting incorrect reductions after the ↵Damien F. Katz
first value. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754982 13f79535-47bb-0310-9956-ffa450edef68
2009-03-16Fix for sporatic replication error during tests.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754970 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15Streaming attachment replication now follows redirects and checks for error ↵John Christopher Anderson
codes. Includes tests that design doc attachments are replicated. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754704 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15fix case-miss when prep_and_validate_update is called on doc with attachment ↵John Christopher Anderson
stubs git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754578 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15verbose error logging turned back on for http requests and log_level = debugJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754577 13f79535-47bb-0310-9956-ffa450edef68
2009-03-15error message on invalid rev format.John Christopher Anderson
another replication test. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754563 13f79535-47bb-0310-9956-ffa450edef68
2009-03-13Commit Damien's rep_security branch to trunk. John Christopher Anderson
Changes bulk_docs conflict checking. Breaks file format, see mailing list for data upgrade procedure, or http://wiki.apache.org/couchdb/Breaking_changes git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@753448 13f79535-47bb-0310-9956-ffa450edef68
2009-03-10fix gen_server calls to honor os_process_timeoutJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@752194 13f79535-47bb-0310-9956-ffa450edef68
2009-03-09merge design doc resource branch. breaking changes to _view query paths. John Christopher Anderson
closes COUCHDB-280 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@751813 13f79535-47bb-0310-9956-ffa450edef68
2009-03-08beefier fault tolerance in the replicatorAdam Kocoloski
- trap exits (enumerator and attachment streamers are linked) - retry by respawning enumerator with last known good source seq - checkpoint replication record on every flush of document buffer - reformat nicer error messages to listeners if we need to exit git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@751491 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07yeah, adding the replication supervisor would be useful tooAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@751306 13f79535-47bb-0310-9956-ffa450edef68
2009-03-07rewrite replicator using OTP behavioursAdam Kocoloski
- only one instance of given source->target runs at a time - supervisor restarts replications that terminate abnormally - pull repl. streams attachments directly to disk - improved memory utilization - temporarily rollback parallel async doc GETs during pull rep. - replication updates show up in Futon Status window git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@751305 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06configure view and external server timeout in using ini variables.John Christopher Anderson
closes COUCHDB-246 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@751020 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06validate reduce view list queries, make query_parse_error response code 400John Christopher Anderson
thanks Jan, thanks Jason Davies. closes COUCHDB-283 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750969 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06tiny refactor of validate_attachment_name for pattern matchingJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750699 13f79535-47bb-0310-9956-ffa450edef68
2009-03-06Verify attachment names. They must be utf-8 (closes COUCHDB-280) and must ↵Jan Lehnardt
not start with an underscore. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750695 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05allow multi-key POST requests for _list. John Christopher Anderson
closes COUCHDB-269. thanks Jason Davies git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750565 13f79535-47bb-0310-9956-ffa450edef68
2009-03-05consistency in messages (HTTPd -> httpd)Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750430 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04refactor show 404 handling doc-loading special case out of couch_httpd_db.erlJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749902 13f79535-47bb-0310-9956-ffa450edef68
2009-03-04allow for handling 404s in document show functionsJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749852 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03Forgot to change MochiWeb version in lib directory name when updating ↵Christopher Lenz
MochiWeb in r747575. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749783 13f79535-47bb-0310-9956-ffa450edef68
2009-03-03stats metrics renamed: os_open_files -> open_os_files, database_changes -> ↵Jan Lehnardt
database_writes git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749583 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02fix capitalisation for MochiWeb in stats descriptionJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749419 13f79535-47bb-0310-9956-ffa450edef68
2009-03-02fix error for when no stats have been collected yet and /_stats is queriedJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749412 13f79535-47bb-0310-9956-ffa450edef68
2009-02-28supply etags for reduce view listsJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748754 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27- remove unused aggregate metrics fieldJan Lehnardt
- return an empty object when there are no stats git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748622 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27- group HTTP method stats into httpd_requests_methods as per Christopher ↵Jan Lehnardt
Lenz's suggestion - renamed http_status_codes to httpd_status_codes - better internal variable naming - remove comments that were leftovers from earlier refactoring git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748582 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26remove the no longer existing couch_file_stats from couch_primary_servicesJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748326 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26Add style guide for stats descriptions and adjust existing descriptions ↵Jan Lehnardt
accordingly. Thanks to Noah Slater for suggesting the style. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748309 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26Fix and test for file descriptor leaksDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748299 13f79535-47bb-0310-9956-ffa450edef68
2009-02-26- add descriptions to metricsJan Lehnardt
- move document_* metrics to couch_db module and merge them into database_* metrics git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748217 13f79535-47bb-0310-9956-ffa450edef68
2009-02-25add js test suite for stats, enable access for a previously internal metricJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747852 13f79535-47bb-0310-9956-ffa450edef68
2009-02-25Support for reduce views in _list. closes COUCHDB-260. Thanks Jason Davies.John Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747679 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24Update MochiWeb in trunk to r97. Closes COUCHDB-255.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747575 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24added newline to JSON responses, closes COUCHDB-107Noah Slater
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747465 13f79535-47bb-0310-9956-ffa450edef68
2009-02-24Fix for COUCHDB-266.Christopher Lenz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747381 13f79535-47bb-0310-9956-ffa450edef68
2009-02-22add couch_stats.hrl to distribution filesJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746768 13f79535-47bb-0310-9956-ffa450edef68
2009-02-22add missing filesJan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746734 13f79535-47bb-0310-9956-ffa450edef68
2009-02-22Add runtime statistics -- without EUnit tests for now.Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746691 13f79535-47bb-0310-9956-ffa450edef68
2009-02-18Better error messages on decoding invalid JSON. Changes the CouchDB version ↵John Christopher Anderson
of mochijson2. Closes COUCHDB-258 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@745401 13f79535-47bb-0310-9956-ffa450edef68
2009-02-17Put file ref_counting into it's own module, to make the speed of opening an ↵Damien F. Katz
already open database faster (by not waiting on file pending operations, particularly fsync). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@745076 13f79535-47bb-0310-9956-ffa450edef68