summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)Author
2009-07-03upgrade to ibrowse 1.5.0Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@790771 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30correct stat intervals. Thanks Bob DionneAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@789884 13f79535-47bb-0310-9956-ffa450edef68
2009-06-30reset stats on POST /_restart and correct open_databases test. Closes ↵Adam Kocoloski
COUCHDB-398 I rearranged the shutdown order from what was committed in the 0.9.x branch so that the stats collector is still up when couch_server shuts down. This way the messages to decrement the number of open_databases during the shutdown don't fail with a badarg. The badarg is silently ignored in 0.9.x, but here we pattern match with a true so we end up with lots of error reports. You may see some spurious erlang error reports when running the test suite on an SMP emulator, due to the use of public ets tables in the stats collector API. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@789829 13f79535-47bb-0310-9956-ffa450edef68
2009-06-27removed some dead code found by Dialyzer, more to comeJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@788979 13f79535-47bb-0310-9956-ffa450edef68
2009-06-27A /_whoami handler to provide client apps with access to the active userCtx ↵John Christopher Anderson
for their session. Thanks to the CouchDB University students and janl for helping to implement this. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@788971 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25Of course some of them were 8 space tabs.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@788261 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25Cleaning out tabs from source code. Purely whitespace diff.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@788258 13f79535-47bb-0310-9956-ffa450edef68
2009-06-25Adding tests for couch_task_status.erlPaul Joseph Davis
Thanks Bob Dionne git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@788246 13f79535-47bb-0310-9956-ffa450edef68
2009-06-24Lots of tests for couch_config.erlPaul Joseph Davis
Refactored couch_config.erl to resolve COUCHDB-384 Tweaked the main Makefile.am to make the cover and check targets depend on the dev target instead of the all target. Added the executable property to all test files to make them easily runnable as standalone tests (as in not via prove). git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@787914 13f79535-47bb-0310-9956-ffa450edef68
2009-06-18Fixes COUCHDB-383 - Ignore extra URL parameters.Paul Joseph Davis
No one opposed the switch so here it is. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@786337 13f79535-47bb-0310-9956-ffa450edef68
2009-06-15Send CouchDB Server: header for all external queries. Fixes COUCHDB-379.Jan Lehnardt
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@784706 13f79535-47bb-0310-9956-ffa450edef68
2009-06-14merge list-iterator branch to trunk. changes JavaScript _list APIJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@784601 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11Forgot to remove old test/0 exports.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@783604 13f79535-47bb-0310-9956-ffa450edef68
2009-06-11Integrating more ETAP tests from Bob Dionne.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@783600 13f79535-47bb-0310-9956-ffa450edef68
2009-06-09Fixes COUCHDB-372Paul Joseph Davis
New couchspawnkillable requires update notifiers to expect a line of input to be read back. Undeleting the couch_os_process:write/2 method that got ixnayed. Now named send/2 and uses a gen_server:cast/2 to make it more apparent on what's going on. Thanks rnewson. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@782854 13f79535-47bb-0310-9956-ffa450edef68
2009-06-08accept UTF-16 surrogate pairs. Fixes COUCHDB-327, COUCHDB-333Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@782643 13f79535-47bb-0310-9956-ffa450edef68
2009-06-05checkpoint during abnormal terminate is not safeAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@782038 13f79535-47bb-0310-9956-ffa450edef68
2009-06-01Added tests for heartbeat and timeout options in the _changes api.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780539 13f79535-47bb-0310-9956-ffa450edef68
2009-05-31Removed space from whitespace heartbeat in _changes apiDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780531 13f79535-47bb-0310-9956-ffa450edef68
2009-05-31Added timeout and heartbeat options to the _changes apiDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780529 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Making the couchspawnkillable script marked as executable.Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780328 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Added code coverage report generation target.Paul Joseph Davis
To generate reports: # Assuming etap is installed $ cd /path/to/couchdb $ ./bootstrap && ERLC_FLAGS=+debug_info ./configure && make cover You can browse the report by opening ./cover/index.html in your html consuming software of choice. Shoutout to Nick Gerakines in THANKS for helping with etap and testing in general. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780326 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Fix for couch_file bug found with etap test suiteDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780300 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Revert accidently checked-in test change.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780168 13f79535-47bb-0310-9956-ffa450edef68
2009-05-30Test and fix for infinite loops in view_servers, fix for crashed OS ↵Damien F. Katz
processes causing leaked erlang processes and fix for view server crashing when view group process terminates. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780165 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29make sure process is still alive before calculating memory footprintAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779846 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29the atom doesn't necessarily existAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779842 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29misapplied Antony's workaround for extra bytes in r775724Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779839 13f79535-47bb-0310-9956-ffa450edef68
2009-05-29Fix and test for COUCHDB-366, uploading large attachments causes 500 error.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779824 13f79535-47bb-0310-9956-ffa450edef68
2009-05-28refactor load_ini_file so it can be called from another processAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779394 13f79535-47bb-0310-9956-ffa450edef68
2009-05-27Fixes COUCHDB-363Paul Joseph Davis
Applying the patch provided by Benoit Chesneau for 363 which fixes an error when POST'ing to _external handlers. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778949 13f79535-47bb-0310-9956-ffa450edef68
2009-05-26ignore _local_seq when included in a saved documentJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778890 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25Fix for binary chunks being out of order with new tail append codeDamien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778521 13f79535-47bb-0310-9956-ffa450edef68
2009-05-25Merging new tail append storage into trunk. Upgrades are automatic, once ↵Damien F. Katz
opened by this version old versions of CouchDB will not be able to open the files. As a precaution, you should back-up your production databases before upgrading. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778485 13f79535-47bb-0310-9956-ffa450edef68
2009-05-24Added stats tracking for active _changes clients.Damien F. Katz
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778072 13f79535-47bb-0310-9956-ffa450edef68
2009-05-23remove leftover trace loggingJohn Christopher Anderson
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@777975 13f79535-47bb-0310-9956-ffa450edef68
2009-05-23added an design doc option so that doc._local_seq can be available in the ↵John Christopher Anderson
map view. Closes COUCHDB-346 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@777757 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20restart update_notification process when config changesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@776715 13f79535-47bb-0310-9956-ffa450edef68
2009-05-20Move default handler configuration to couch_httpd:start_link/0Paul Joseph Davis
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@776685 13f79535-47bb-0310-9956-ffa450edef68
2009-05-19Add a configuration parameter for the default database handler.Paul Joseph Davis
Closes COUCHDB-353 Thanks Brad Anderson git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@776143 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18first crack at binary backoff for failed replicator requestsAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@776031 13f79535-47bb-0310-9956-ffa450edef68
2009-05-18remove leftover .compact files on DB deleteAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775785 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17work around ibrowse giving response chunks too many bytes. Thanks Antony.Adam Kocoloski
Initially committed on the 0.9.x branch by accident in 775634. We want to include this in 0.9.1 anyway, though, so shouldn't ultimately be a problem. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775724 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17guard memory_footprint() list with is_pid()Adam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775720 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17one more hanging receive loop fixAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775715 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17replicator should never hang when attachment receiver diesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775685 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17cleaner, more informative replicator log messagesAdam Kocoloski
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775680 13f79535-47bb-0310-9956-ffa450edef68
2009-05-17Fixes COUCHDB-41Paul Joseph Davis
When a database doesn't exist, it now returns: {"error": "not_found", "reason": "no_db_file"} git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775577 13f79535-47bb-0310-9956-ffa450edef68
2009-05-16replicator memory management and buffer flush calculation updatesAdam Kocoloski
* new should_flush fun considers ndocs, nattachments, memory in making decision * memory utilized by attachment receivers is accounted for * download attachments using standalone connections instead of conn pool. This prevents a document request from getting stuck behind a huge attachment, which would prevent us from triggering a buffer flush in time. We also consider the memory utilization of the standalone ibrowse connection in should_flush git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775507 13f79535-47bb-0310-9956-ffa450edef68
2009-05-13Adding testing for GET /_changes?continuous=true by adding a GET ↵Damien F. Katz
/_sleep?time=Msecs call, which allows the browser to process the waiting data on the other async XHR request. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774474 13f79535-47bb-0310-9956-ffa450edef68