svn commit: r1061809 - in /couchdb/trunk: share/www/script/test/changes.js src/couchdb/couch_changes.erl

2011-01-21 Thread fdmanana
Author: fdmanana Date: Fri Jan 21 14:02:59 2011 New Revision: 1061809 URL: http://svn.apache.org/viewvc?rev=1061809view=rev Log: Fix strange result when passing a filter and a limit of 1 to /db/_changes Fixes COUCHDB-1037 Modified: couchdb/trunk/share/www/script/test/changes.js couchdb

svn commit: r1061810 - in /couchdb/branches/1.0.x: share/www/script/test/changes.js src/couchdb/couch_changes.erl

2011-01-21 Thread fdmanana
Author: fdmanana Date: Fri Jan 21 14:04:38 2011 New Revision: 1061810 URL: http://svn.apache.org/viewvc?rev=1061810view=rev Log: Merged revision 1061809 from trunk Fix strange result when passing a filter and a limit of 1 to /db/_changes Fixes COUCHDB-1037 Modified

svn commit: r1061811 - in /couchdb/branches/1.1.x: share/www/script/test/changes.js src/couchdb/couch_changes.erl

2011-01-21 Thread fdmanana
Author: fdmanana Date: Fri Jan 21 14:05:07 2011 New Revision: 1061811 URL: http://svn.apache.org/viewvc?rev=1061811view=rev Log: Merged revision 1061809 from trunk Fix strange result when passing a filter and a limit of 1 to /db/_changes Fixes COUCHDB-1037 Modified: couchdb/branches/1.1.x

svn commit: r1061290 - /couchdb/trunk/src/couchdb/couch_httpd.erl

2011-01-20 Thread fdmanana
Author: fdmanana Date: Thu Jan 20 13:24:12 2011 New Revision: 1061290 URL: http://svn.apache.org/viewvc?rev=1061290view=rev Log: Removed unnecessary conversions Modified: couchdb/trunk/src/couchdb/couch_httpd.erl Modified: couchdb/trunk/src/couchdb/couch_httpd.erl URL: http

svn commit: r1061340 - in /couchdb/trunk/src/ibrowse: Makefile.am ibrowse.app.in ibrowse.erl ibrowse_http_client.erl ibrowse_test.erl

2011-01-20 Thread fdmanana
Author: fdmanana Date: Thu Jan 20 15:27:41 2011 New Revision: 1061340 URL: http://svn.apache.org/viewvc?rev=1061340view=rev Log: Upgrade ibrowse to version 2.1.3 This version fixes several bugs and adds a few minor improvements. For a list and description of the changes relative to the previous

svn commit: r1061341 - in /couchdb/branches/1.1.x/src/ibrowse: Makefile.am ibrowse.app.in ibrowse.erl ibrowse_http_client.erl ibrowse_test.erl

2011-01-20 Thread fdmanana
Author: fdmanana Date: Thu Jan 20 15:28:55 2011 New Revision: 1061341 URL: http://svn.apache.org/viewvc?rev=1061341view=rev Log: Merge revision 1061340 from trunk Upgrade ibrowse to version 2.1.3 This version fixes several bugs and adds a few minor improvements. For a list and description

svn commit: r1061344 - in /couchdb/branches/1.0.x/src/ibrowse: Makefile.am ibrowse.app.in ibrowse.erl ibrowse_http_client.erl ibrowse_test.erl

2011-01-20 Thread fdmanana
Author: fdmanana Date: Thu Jan 20 15:30:41 2011 New Revision: 1061344 URL: http://svn.apache.org/viewvc?rev=1061344view=rev Log: Merge revision 1061340 from trunk Upgrade ibrowse to version 2.1.3 This version fixes several bugs and adds a few minor improvements. For a list and description

svn commit: r1061403 - /couchdb/trunk/src/couchdb/couch_util.erl

2011-01-20 Thread fdmanana
Author: fdmanana Date: Thu Jan 20 17:19:28 2011 New Revision: 1061403 URL: http://svn.apache.org/viewvc?rev=1061403view=rev Log: Avoid so many unnecessary iolist_to_binary calls Modified: couchdb/trunk/src/couchdb/couch_util.erl Modified: couchdb/trunk/src/couchdb/couch_util.erl URL: http

svn commit: r1061427 - /couchdb/trunk/src/couchdb/couch_httpd.erl

2011-01-20 Thread fdmanana
Author: fdmanana Date: Thu Jan 20 18:02:28 2011 New Revision: 1061427 URL: http://svn.apache.org/viewvc?rev=1061427view=rev Log: Simpler implementation and one less BIF call Modified: couchdb/trunk/src/couchdb/couch_httpd.erl Modified: couchdb/trunk/src/couchdb/couch_httpd.erl URL: http

svn commit: r1060860 - /couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl

2011-01-19 Thread fdmanana
Author: fdmanana Date: Wed Jan 19 16:45:40 2011 New Revision: 1060860 URL: http://svn.apache.org/viewvc?rev=1060860view=rev Log: Fix by-doc-IDs pull replication from a CouchDB server version 1.1.0 Closes COUCHDB-1028 Modified: couchdb/trunk/src/couchdb/couch_rep_changes_feed.erl Modified

svn commit: r1059884 - /couchdb/trunk/src/couchdb/couch_httpd_proxy.erl

2011-01-17 Thread fdmanana
Author: fdmanana Date: Mon Jan 17 11:30:48 2011 New Revision: 1059884 URL: http://svn.apache.org/viewvc?rev=1059884view=rev Log: Removed unnecessary iolist_to_binary/1 calls These IOlist to binary conversions are not necessary since ibrowse accepts IOlists as outputs of streaming functions. Also

svn commit: r1059892 - /couchdb/branches/1.1.x/src/couchdb/couch_db_updater.erl

2011-01-17 Thread fdmanana
Author: fdmanana Date: Mon Jan 17 11:43:37 2011 New Revision: 1059892 URL: http://svn.apache.org/viewvc?rev=1059892view=rev Log: Merged revision 1053731 from trunk Two cleanups in couch_db_updater It also seems to add a little performance gain: http://graphs.mikeal.couchone.com/#/graph

svn commit: r1059893 - /couchdb/trunk/src/couchdb/couch_db_updater.erl

2011-01-17 Thread fdmanana
Author: fdmanana Date: Mon Jan 17 11:46:08 2011 New Revision: 1059893 URL: http://svn.apache.org/viewvc?rev=1059893view=rev Log: More efficient implementation of the DB updater BTree functions Closes COUCHDB-1027 Modified: couchdb/trunk/src/couchdb/couch_db_updater.erl Modified: couchdb

svn commit: r1059894 - /couchdb/branches/1.1.x/src/couchdb/couch_db_updater.erl

2011-01-17 Thread fdmanana
Author: fdmanana Date: Mon Jan 17 11:49:00 2011 New Revision: 1059894 URL: http://svn.apache.org/viewvc?rev=1059894view=rev Log: Merged revision 1059893 from trunk More efficient implementation of the DB updater BTree functions Closes COUCHDB-1027 Modified: couchdb/branches/1.1.x/src

svn commit: r1057875 - in /couchdb/trunk: share/www/script/test/attachments_multipart.js src/couchdb/couch_httpd_db.erl

2011-01-11 Thread fdmanana
Author: fdmanana Date: Tue Jan 11 21:28:20 2011 New Revision: 1057875 URL: http://svn.apache.org/viewvc?rev=1057875view=rev Log: Make the doc multipart GET APIs always send attachments compressed For attachments that are stored in compressed (gzip) form, make sure the document multipart/related

svn commit: r1057877 - in /couchdb/branches/0.11.x: share/www/script/test/attachments_multipart.js src/couchdb/couch_httpd_db.erl

2011-01-11 Thread fdmanana
Author: fdmanana Date: Tue Jan 11 21:29:24 2011 New Revision: 1057877 URL: http://svn.apache.org/viewvc?rev=1057877view=rev Log: Merged revision 1057875 from trunk: Make the doc multipart GET APIs always send attachments compressed For attachments that are stored in compressed (gzip) form, make

svn commit: r1057878 - in /couchdb/branches/1.0.x: share/www/script/test/attachments_multipart.js src/couchdb/couch_httpd_db.erl

2011-01-11 Thread fdmanana
Author: fdmanana Date: Tue Jan 11 21:29:55 2011 New Revision: 1057878 URL: http://svn.apache.org/viewvc?rev=1057878view=rev Log: Merged revision 1057875 from trunk: Make the doc multipart GET APIs always send attachments compressed For attachments that are stored in compressed (gzip) form, make

svn commit: r1057879 - in /couchdb/branches/1.1.x: share/www/script/test/attachments_multipart.js src/couchdb/couch_httpd_db.erl

2011-01-11 Thread fdmanana
Author: fdmanana Date: Tue Jan 11 21:30:36 2011 New Revision: 1057879 URL: http://svn.apache.org/viewvc?rev=1057879view=rev Log: Merged revision 1057875 from trunk: Make the doc multipart GET APIs always send attachments compressed For attachments that are stored in compressed (gzip) form, make

svn commit: r1056695 - /couchdb/branches/1.1.x/src/couchdb/couch_config.erl

2011-01-08 Thread fdmanana
Author: fdmanana Date: Sat Jan 8 11:58:29 2011 New Revision: 1056695 URL: http://svn.apache.org/viewvc?rev=1056695view=rev Log: Merge revision 1056694 from trunk Add missing case for COUCHDB-966 When not able to read one of the .ini configuration files due to file permissions, map {error

svn commit: r1056698 - /couchdb/branches/1.1.x/NEWS

2011-01-08 Thread fdmanana
Author: fdmanana Date: Sat Jan 8 12:21:59 2011 New Revision: 1056698 URL: http://svn.apache.org/viewvc?rev=1056698view=rev Log: Updated NEWS for 1.1.0 Modified: couchdb/branches/1.1.x/NEWS Modified: couchdb/branches/1.1.x/NEWS URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/NEWS

svn commit: r1056275 - in /couchdb/branches/1.1.x/src/couchdb: couch_config.erl couch_config_writer.erl couch_event_sup.erl couch_file.erl couch_httpd_misc_handlers.erl couch_log.erl

2011-01-07 Thread fdmanana
Author: fdmanana Date: Fri Jan 7 11:43:46 2011 New Revision: 1056275 URL: http://svn.apache.org/viewvc?rev=1056275view=rev Log: Merged revision 1056274 from trunk More explicit and helpful file access permission errors Closes COUCHDB-966 Modified: couchdb/branches/1.1.x/src/couchdb

svn commit: r1056324 - /couchdb/trunk/src/couchdb/couch_httpd.erl

2011-01-07 Thread fdmanana
Author: fdmanana Date: Fri Jan 7 14:04:08 2011 New Revision: 1056324 URL: http://svn.apache.org/viewvc?rev=1056324view=rev Log: Minor cleanups in couch_httpd Modified: couchdb/trunk/src/couchdb/couch_httpd.erl Modified: couchdb/trunk/src/couchdb/couch_httpd.erl URL: http://svn.apache.org

svn commit: r1056397 - /couchdb/branches/1.0.x/src/ibrowse/ibrowse_http_client.erl

2011-01-07 Thread fdmanana
Author: fdmanana Date: Fri Jan 7 17:17:18 2011 New Revision: 1056397 URL: http://svn.apache.org/viewvc?rev=1056397view=rev Log: Merged revision 1056395 from trunk Applied 2 more ibrowse fixes already submitted upstream https://github.com/cmullaparthi/ibrowse/pull/24 https://github.com

svn commit: r1056400 - /couchdb/branches/1.1.x/src/ibrowse/ibrowse_http_client.erl

2011-01-07 Thread fdmanana
Author: fdmanana Date: Fri Jan 7 17:17:46 2011 New Revision: 1056400 URL: http://svn.apache.org/viewvc?rev=1056400view=rev Log: Merged revision 1056395 from trunk Applied 2 more ibrowse fixes already submitted upstream https://github.com/cmullaparthi/ibrowse/pull/24 https://github.com

svn commit: r1056462 - /couchdb/trunk/src/couchdb/couch_log.erl

2011-01-07 Thread fdmanana
Author: fdmanana Date: Fri Jan 7 19:08:27 2011 New Revision: 1056462 URL: http://svn.apache.org/viewvc?rev=1056462view=rev Log: Small refactoring of couch_log Also added a precompiled end-of-line regexp to the state of the gen_event and a missing file:close/1 call. Modified: couchdb/trunk

svn commit: r1055592 - in /couchdb/trunk: etc/couchdb/default.ini.tpl.in etc/couchdb/local.ini src/couchdb/couch_httpd.erl

2011-01-05 Thread fdmanana
Author: fdmanana Date: Wed Jan 5 19:26:14 2011 New Revision: 1055592 URL: http://svn.apache.org/viewvc?rev=1055592view=rev Log: Added [httpd] socket_options and server_options Part of this patch (the server_options parameter) is a contribution from Randall Leeds. Closes COUCHDB-1008 Modified

svn commit: r1055612 - /couchdb/trunk/src/couchdb/couch_doc.erl

2011-01-05 Thread fdmanana
Author: fdmanana Date: Wed Jan 5 20:05:26 2011 New Revision: 1055612 URL: http://svn.apache.org/viewvc?rev=1055612view=rev Log: Avoid unnecessary declaration of anonymous functions Modified: couchdb/trunk/src/couchdb/couch_doc.erl Modified: couchdb/trunk/src/couchdb/couch_doc.erl URL

svn commit: r1054386 - /couchdb/trunk/src/couchdb/couch_file.erl

2011-01-02 Thread fdmanana
Author: fdmanana Date: Sun Jan 2 11:23:11 2011 New Revision: 1054386 URL: http://svn.apache.org/viewvc?rev=1054386view=rev Log: Re-add eof to couch_file's state This was accidently removed together with the 0.9 compatibility code Modified: couchdb/trunk/src/couchdb/couch_file.erl Modified

svn commit: r1053856 - /couchdb/trunk/src/couchdb/couch_db_updater.erl

2010-12-30 Thread fdmanana
Author: fdmanana Date: Thu Dec 30 11:34:39 2010 New Revision: 1053856 URL: http://svn.apache.org/viewvc?rev=1053856view=rev Log: Removed some left-over code for 0.9 database file format upgrade Modified: couchdb/trunk/src/couchdb/couch_db_updater.erl Modified: couchdb/trunk/src/couchdb

svn commit: r1052227 - in /couchdb/trunk: etc/couchdb/default.ini.tpl.in src/couchdb/couch_db.hrl src/couchdb/couch_rep_httpc.erl src/couchdb/couch_rep_reader.erl

2010-12-23 Thread fdmanana
Author: fdmanana Date: Thu Dec 23 11:24:36 2010 New Revision: 1052227 URL: http://svn.apache.org/viewvc?rev=1052227view=rev Log: Fix: replicator didn't use the HTTP settings defined in the .ini config Issue found by Randall Leeds. Thanks. Closes COUCHDB-992 Modified: couchdb/trunk/etc

svn commit: r1052228 - in /couchdb/branches/1.0.x: etc/couchdb/default.ini.tpl.in src/couchdb/couch_db.hrl src/couchdb/couch_rep_httpc.erl src/couchdb/couch_rep_reader.erl

2010-12-23 Thread fdmanana
Author: fdmanana Date: Thu Dec 23 11:25:48 2010 New Revision: 1052228 URL: http://svn.apache.org/viewvc?rev=1052228view=rev Log: Merged revision 1052227 from trunk: Fix: replicator didn't use the HTTP settings defined in the .ini config Issue found by Randall Leeds. Thanks. Closes COUCHDB-992

svn commit: r1052229 - in /couchdb/branches/1.1.x: etc/couchdb/default.ini.tpl.in src/couchdb/couch_db.hrl src/couchdb/couch_rep_httpc.erl src/couchdb/couch_rep_reader.erl

2010-12-23 Thread fdmanana
Author: fdmanana Date: Thu Dec 23 11:27:37 2010 New Revision: 1052229 URL: http://svn.apache.org/viewvc?rev=1052229view=rev Log: Merged revision 1052227 from trunk: Fix: replicator didn't use the HTTP settings defined in the .ini config Issue found by Randall Leeds. Thanks. Closes COUCHDB-992

svn commit: r1052031 - in /couchdb/trunk: src/couchdb/couch_util.erl test/etap/140-attachment-comp.t

2010-12-22 Thread fdmanana
Author: fdmanana Date: Wed Dec 22 19:07:04 2010 New Revision: 1052031 URL: http://svn.apache.org/viewvc?rev=1052031view=rev Log: Make sure attachments get compressed when their MIME type lists parameters Closes COUCHDB-996. Modified: couchdb/trunk/src/couchdb/couch_util.erl couchdb

svn commit: r1052032 - in /couchdb/branches/1.1.x: src/couchdb/couch_util.erl test/etap/140-attachment-comp.t

2010-12-22 Thread fdmanana
Author: fdmanana Date: Wed Dec 22 19:08:23 2010 New Revision: 1052032 URL: http://svn.apache.org/viewvc?rev=1052032view=rev Log: Merged revision 1052031 from trunk: Make sure attachments get compressed when their MIME type lists parameters Closes COUCHDB-996. Modified: couchdb/branches

svn commit: r1052035 - in /couchdb/branches/1.0.x: src/couchdb/couch_util.erl test/etap/140-attachment-comp.t

2010-12-22 Thread fdmanana
Author: fdmanana Date: Wed Dec 22 19:11:07 2010 New Revision: 1052035 URL: http://svn.apache.org/viewvc?rev=1052035view=rev Log: Merged revision 1052031 from trunk: Make sure attachments get compressed when their MIME type lists parameters Closes COUCHDB-996. Modified: couchdb/branches

svn commit: r1052047 - in /couchdb/trunk: share/www/script/test/attachments_multipart.js src/couchdb/couch_httpd_db.erl

2010-12-22 Thread fdmanana
Author: fdmanana Date: Wed Dec 22 19:43:30 2010 New Revision: 1052047 URL: http://svn.apache.org/viewvc?rev=1052047view=rev Log: Allow a multipart/mixed document GET to send the attachments in encoded (compressed) form Currently this API is not used internally but it's a very important one

svn commit: r1052048 - in /couchdb/branches/1.1.x: share/www/script/test/attachments_multipart.js src/couchdb/couch_httpd_db.erl

2010-12-22 Thread fdmanana
Author: fdmanana Date: Wed Dec 22 19:46:12 2010 New Revision: 1052048 URL: http://svn.apache.org/viewvc?rev=1052048view=rev Log: Merged revision 1052047 from trunk: Allow a multipart/mixed document GET to send the attachments in encoded (compressed) form Currently this API is not used

svn commit: r1051082 - in /couchdb/trunk/src/ibrowse: Makefile.am ibrowse.app.in ibrowse.erl ibrowse_http_client.erl ibrowse_test.erl

2010-12-20 Thread fdmanana
Author: fdmanana Date: Mon Dec 20 12:32:49 2010 New Revision: 1051082 URL: http://svn.apache.org/viewvc?rev=1051082view=rev Log: Upgraded ibrowse to version 2.1.2 (released today) This version fixes a blocking issue (which rarely happens) when using the same connection (with ot without

svn commit: r1051084 - in /couchdb/branches/1.0.x/src/ibrowse: Makefile.am ibrowse.app.in ibrowse.erl ibrowse_http_client.erl ibrowse_test.erl

2010-12-20 Thread fdmanana
Author: fdmanana Date: Mon Dec 20 12:34:52 2010 New Revision: 1051084 URL: http://svn.apache.org/viewvc?rev=1051084view=rev Log: Merged revision 1051082 from trunk Upgraded ibrowse to version 2.1.2 (released today) This version fixes a blocking issue (which rarely happens) when using the same

svn commit: r1050163 - /couchdb/trunk/src/couchdb/couch_httpd_auth.erl

2010-12-16 Thread fdmanana
Author: fdmanana Date: Thu Dec 16 21:18:42 2010 New Revision: 1050163 URL: http://svn.apache.org/viewvc?rev=1050163view=rev Log: Removed duplicated function An equivalent exists (couch_util:to_integer/1), but for this particular case it's not needed. Modified: couchdb/trunk/src/couchdb

svn commit: r1044283 - /couchdb/branches/1.1.x/src/couchdb/couch_file.erl

2010-12-10 Thread fdmanana
Author: fdmanana Date: Fri Dec 10 10:54:13 2010 New Revision: 1044283 URL: http://svn.apache.org/viewvc?rev=1044283view=rev Log: Merged revision 1043524 from trunk Calculate and verify MD5 digests outside of a couch_file server This has a significant positive impact

svn commit: r1044284 - /couchdb/branches/1.0.x/src/couchdb/couch_file.erl

2010-12-10 Thread fdmanana
Author: fdmanana Date: Fri Dec 10 11:03:48 2010 New Revision: 1044284 URL: http://svn.apache.org/viewvc?rev=1044284view=rev Log: Merged revision 1043524 from trunk Calculate and verify MD5 digests outside of a couch_file server This has a significant positive impact on the performance

svn commit: r1043352 - in /couchdb/trunk/src/couchdb: couch_btree.erl couch_db.erl couch_db.hrl couch_db_updater.erl couch_file.erl

2010-12-08 Thread fdmanana
Author: fdmanana Date: Wed Dec 8 11:02:44 2010 New Revision: 1043352 URL: http://svn.apache.org/viewvc?rev=1043352view=rev Log: Add a dedicated couch_file server to the DB updater process. This improves both read and write (specially the latest) performance when there's a mix of read and write

svn commit: r1043381 - in /couchdb/trunk/src/couchdb: couch_db.erl couch_db_updater.erl couch_doc.erl couch_file.erl couch_stream.erl couch_view_group.erl

2010-12-08 Thread fdmanana
Author: fdmanana Date: Wed Dec 8 12:17:14 2010 New Revision: 1043381 URL: http://svn.apache.org/viewvc?rev=1043381view=rev Log: Removed all the code that upgrades database files from version 0.9. Also reorganized the export declarations in couch_file and couch_stream to be more readable

svn commit: r1043186 - in /couchdb/trunk: share/www/script/test/replication.js src/couchdb/couch_httpd_misc_handlers.erl src/couchdb/couch_rep.erl src/couchdb/couch_rep_httpc.erl

2010-12-07 Thread fdmanana
Author: fdmanana Date: Tue Dec 7 20:25:42 2010 New Revision: 1043186 URL: http://svn.apache.org/viewvc?rev=1043186view=rev Log: Replicator improvement: send unauthorized error message instead of db_not_found when a remote endpoint can not be accessed due to authorization. Modified: couchdb

svn commit: r1043187 - in /couchdb/branches/1.0.x: share/www/script/test/replication.js src/couchdb/couch_httpd_misc_handlers.erl src/couchdb/couch_rep.erl src/couchdb/couch_rep_httpc.erl

2010-12-07 Thread fdmanana
Author: fdmanana Date: Tue Dec 7 20:26:32 2010 New Revision: 1043187 URL: http://svn.apache.org/viewvc?rev=1043187view=rev Log: Merged revision 1043186 from trunk: Replicator improvement: send unauthorized error message instead of db_not_found when a remote endpoint can not be accessed due

svn commit: r1043188 - in /couchdb/branches/1.1.x: share/www/script/test/replication.js src/couchdb/couch_httpd_misc_handlers.erl src/couchdb/couch_rep.erl src/couchdb/couch_rep_httpc.erl

2010-12-07 Thread fdmanana
Author: fdmanana Date: Tue Dec 7 20:27:13 2010 New Revision: 1043188 URL: http://svn.apache.org/viewvc?rev=1043188view=rev Log: Merged revision 1043186 from trunk: Replicator improvement: send unauthorized error message instead of db_not_found when a remote endpoint can not be accessed due

svn commit: r1043196 - in /couchdb/branches/new_replicator: etc/couchdb/default.ini.tpl.in src/couchdb/Makefile.am src/couchdb/couch_api_wrap.erl src/couchdb/couch_api_wrap.hrl src/couchdb/couch_api_w

2010-12-07 Thread fdmanana
Author: fdmanana Date: Tue Dec 7 20:57:33 2010 New Revision: 1043196 URL: http://svn.apache.org/viewvc?rev=1043196view=rev Log: New replicator: added custom httpc connection pool manager. This avoids sharing http connections between different replications that share the same remote endpoints

svn commit: r1041103 - /couchdb/trunk/src/couchdb/couch_httpd.erl

2010-12-01 Thread fdmanana
Author: fdmanana Date: Wed Dec 1 17:48:06 2010 New Revision: 1041103 URL: http://svn.apache.org/viewvc?rev=1041103view=rev Log: Proper verification of the accepted content types plus some code cleaning. Modified: couchdb/trunk/src/couchdb/couch_httpd.erl Modified: couchdb/trunk/src/couchdb

svn commit: r1041113 - /couchdb/branches/1.1.x/src/couchdb/couch_httpd.erl

2010-12-01 Thread fdmanana
Author: fdmanana Date: Wed Dec 1 18:10:09 2010 New Revision: 1041113 URL: http://svn.apache.org/viewvc?rev=1041113view=rev Log: Merged revision 1041103 from trunk: Proper verification of the accepted content types plus some code cleaning. Modified: couchdb/branches/1.1.x/src/couchdb

svn commit: r1040483 - /couchdb/branches/new_replicator/src/couchdb/couch_changes.erl

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 12:19:40 2010 New Revision: 1040483 URL: http://svn.apache.org/viewvc?rev=1040483view=rev Log: Merged revision 1035778 from trunk: Some code simplifications to the couch_changes module. Modified: couchdb/branches/new_replicator/src/couchdb/couch_changes.erl

svn commit: r1040484 - /couchdb/branches/new_replicator/src/couchdb/couch_httpd_db.erl

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 12:20:09 2010 New Revision: 1040484 URL: http://svn.apache.org/viewvc?rev=1040484view=rev Log: Fix compilation error (wrong function clause terminator). Modified: couchdb/branches/new_replicator/src/couchdb/couch_httpd_db.erl Modified: couchdb/branches

svn commit: r1040485 - /couchdb/branches/new_replicator/src/couchdb/couch_httpd_db.erl

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 12:20:29 2010 New Revision: 1040485 URL: http://svn.apache.org/viewvc?rev=1040485view=rev Log: Removed call to function that doesn't exists in this branch. Modified: couchdb/branches/new_replicator/src/couchdb/couch_httpd_db.erl Modified: couchdb/branches

svn commit: r1040486 - in /couchdb/branches/new_replicator: share/www/script/test/ src/couchdb/

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 12:21:08 2010 New Revision: 1040486 URL: http://svn.apache.org/viewvc?rev=1040486view=rev Log: Make replication by-doc-IDs use the builtin filter _doc_ids (reduces code size and allows for continuous by-doc-IDs replication). Modified: couchdb/branches

svn commit: r1040487 - /couchdb/branches/new_replicator/share/www/script/test/new_replication.js

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 12:21:33 2010 New Revision: 1040487 URL: http://svn.apache.org/viewvc?rev=1040487view=rev Log: Replacing calls to T() with calls to TEquals() in the test case. Modified: couchdb/branches/new_replicator/share/www/script/test/new_replication.js Modified

svn commit: r1040488 - /couchdb/branches/new_replicator/src/couchdb/couch_replicator.erl

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 12:21:53 2010 New Revision: 1040488 URL: http://svn.apache.org/viewvc?rev=1040488view=rev Log: Backport of COUCHDB-704: make the replicator reuse session IDs. Modified: couchdb/branches/new_replicator/src/couchdb/couch_replicator.erl Modified: couchdb

svn commit: r1040490 - in /couchdb/branches/new_replicator: etc/couchdb/default.ini.tpl.in src/couchdb/couch_api_wrap.hrl src/couchdb/couch_api_wrap_httpc.erl src/couchdb/couch_replicator_utils.erl

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 12:22:47 2010 New Revision: 1040490 URL: http://svn.apache.org/viewvc?rev=1040490view=rev Log: Backport COUCHDB-491 into the new replicator (replicator SSL options). Modified: couchdb/branches/new_replicator/etc/couchdb/default.ini.tpl.in couchdb

svn commit: r1040491 - in /couchdb/branches/new_replicator/src/couchdb: couch_api_wrap.hrl couch_db.hrl

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 12:23:15 2010 New Revision: 1040491 URL: http://svn.apache.org/viewvc?rev=1040491view=rev Log: Moved rep record into couch_db.hrl. Modified: couchdb/branches/new_replicator/src/couchdb/couch_api_wrap.hrl couchdb/branches/new_replicator/src/couchdb

svn commit: r1040492 - in /couchdb/branches/new_replicator/src/couchdb: couch_api_wrap.erl couch_db.erl couch_db_updater.erl couch_replicator.erl couch_replicator_doc_copiers.erl couch_replicator_rev_

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 12:23:54 2010 New Revision: 1040492 URL: http://svn.apache.org/viewvc?rev=1040492view=rev Log: New replicator: avoid unreleased file handles after compaction of a local endpoint (backport of COUCHDB-926 related fixes). Modified: couchdb/branches

svn commit: r1040603 - /couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 16:07:58 2010 New Revision: 1040603 URL: http://svn.apache.org/viewvc?rev=1040603view=rev Log: Missing cases for COUCHDB-949 (adding aliases start_key and end_key). Modified: couchdb/trunk/src/couchdb/couch_httpd_rewrite.erl Modified: couchdb/trunk/src

svn commit: r1040605 - /couchdb/branches/1.1.x/src/couchdb/couch_httpd_rewrite.erl

2010-11-30 Thread fdmanana
Author: fdmanana Date: Tue Nov 30 16:08:45 2010 New Revision: 1040605 URL: http://svn.apache.org/viewvc?rev=1040605view=rev Log: Merged revision 1040603 from trunk: Missing cases for COUCHDB-949 (adding aliases start_key and end_key). Modified: couchdb/branches/1.1.x/src/couchdb

svn commit: r1039872 - /couchdb/trunk/src/couchdb/couch_rep_db_listener.erl

2010-11-28 Thread fdmanana
Author: fdmanana Date: Sun Nov 28 12:44:00 2010 New Revision: 1039872 URL: http://svn.apache.org/viewvc?rev=1039872view=rev Log: Replicator DB listener: removed function clause not needed anymore. Modified: couchdb/trunk/src/couchdb/couch_rep_db_listener.erl Modified: couchdb/trunk/src

svn commit: r1039069 - /couchdb/trunk/src/couchdb/couch_rep_db_listener.erl

2010-11-25 Thread fdmanana
Author: fdmanana Date: Thu Nov 25 15:16:15 2010 New Revision: 1039069 URL: http://svn.apache.org/viewvc?rev=1039069view=rev Log: Replicator DB: proper handling of the changes loop process. Modified: couchdb/trunk/src/couchdb/couch_rep_db_listener.erl Modified: couchdb/trunk/src/couchdb

svn commit: r1039070 - /couchdb/branches/1.1.x/src/couchdb/couch_rep_db_listener.erl

2010-11-25 Thread fdmanana
Author: fdmanana Date: Thu Nov 25 15:16:53 2010 New Revision: 1039070 URL: http://svn.apache.org/viewvc?rev=1039070view=rev Log: Merged revision 1039069 from trunk: Replicator DB: proper handling of the changes loop process. Modified: couchdb/branches/1.1.x/src/couchdb

svn commit: r1039118 - /couchdb/trunk/share/server/util.js

2010-11-25 Thread fdmanana
Author: fdmanana Date: Thu Nov 25 18:00:55 2010 New Revision: 1039118 URL: http://svn.apache.org/viewvc?rev=1039118view=rev Log: Even if sealing of an array is not allowed in the installed SpiderMonkey version, seal its members. Modified: couchdb/trunk/share/server/util.js Modified

svn commit: r1039121 - /couchdb/branches/1.0.x/share/server/util.js

2010-11-25 Thread fdmanana
Author: fdmanana Date: Thu Nov 25 18:01:37 2010 New Revision: 1039121 URL: http://svn.apache.org/viewvc?rev=1039121view=rev Log: Merged revision 1039118 from trunk: Even if sealing of an array is not allowed in the installed SpiderMonkey version, seal its members. Modified: couchdb

svn commit: r1039123 - /couchdb/branches/1.1.x/share/server/util.js

2010-11-25 Thread fdmanana
Author: fdmanana Date: Thu Nov 25 18:02:07 2010 New Revision: 1039123 URL: http://svn.apache.org/viewvc?rev=1039123view=rev Log: Merged revision 1039118 from trunk: Even if sealing of an array is not allowed in the installed SpiderMonkey version, seal its members. Modified: couchdb

svn commit: r1038662 - /couchdb/branches/1.1.x/src/couchdb/couch_rep_db_listener.erl

2010-11-24 Thread fdmanana
Author: fdmanana Date: Wed Nov 24 16:06:12 2010 New Revision: 1038662 URL: http://svn.apache.org/viewvc?rev=1038662view=rev Log: Merged revision 1038660 from trunk: Replicator DB: fix a rare gen_server death case. Happened when the rep_db_created message is received before the changes loop dies

svn commit: r1038665 - in /couchdb/trunk: share/www/script/test/replicator_db.js src/couchdb/couch_doc.erl src/couchdb/couch_rep.erl

2010-11-24 Thread fdmanana
Author: fdmanana Date: Wed Nov 24 16:09:59 2010 New Revision: 1038665 URL: http://svn.apache.org/viewvc?rev=1038665view=rev Log: Replicator DB: added _replication_state_time (a unix timestamp value) to replication documents. Modified: couchdb/trunk/share/www/script/test/replicator_db.js

svn commit: r1038666 - in /couchdb/branches/1.1.x: share/www/script/test/replicator_db.js src/couchdb/couch_doc.erl src/couchdb/couch_rep.erl

2010-11-24 Thread fdmanana
Author: fdmanana Date: Wed Nov 24 16:11:39 2010 New Revision: 1038666 URL: http://svn.apache.org/viewvc?rev=1038666view=rev Log: Merged revision 1038665 from trunk: Replicator DB: added _replication_state_time (a unix timestamp value) to replication documents. Modified: couchdb/branches

svn commit: r1038067 - in /couchdb/trunk: share/www/script/test/replicator_db.js src/couchdb/couch_js_functions.hrl src/couchdb/couch_rep.erl src/couchdb/couch_rep_db_listener.erl

2010-11-23 Thread fdmanana
Author: fdmanana Date: Tue Nov 23 11:33:42 2010 New Revision: 1038067 URL: http://svn.apache.org/viewvc?rev=1038067view=rev Log: Replicator DB changes: - Added back the restriction that only the replicator can edit replication documents - this avoids lots of potential race conditions

svn commit: r1038176 - /couchdb/trunk/src/couchdb/couch_rep_db_listener.erl

2010-11-23 Thread fdmanana
Author: fdmanana Date: Tue Nov 23 15:52:31 2010 New Revision: 1038176 URL: http://svn.apache.org/viewvc?rev=1038176view=rev Log: Replicator DB: stop all ongoing replications when the replicator DB is deleted or renamed (in the .ini config). Also updated the gen_server to stop when it receives

svn commit: r1038181 - /couchdb/trunk/src/couchdb/couch_rep_db_listener.erl

2010-11-23 Thread fdmanana
Author: fdmanana Date: Tue Nov 23 16:01:56 2010 New Revision: 1038181 URL: http://svn.apache.org/viewvc?rev=1038181view=rev Log: Corrected error message grammar. Modified: couchdb/trunk/src/couchdb/couch_rep_db_listener.erl Modified: couchdb/trunk/src/couchdb/couch_rep_db_listener.erl URL

svn commit: r1038182 - /couchdb/branches/1.1.x/src/couchdb/couch_rep_db_listener.erl

2010-11-23 Thread fdmanana
Author: fdmanana Date: Tue Nov 23 16:02:32 2010 New Revision: 1038182 URL: http://svn.apache.org/viewvc?rev=1038182view=rev Log: Merged revision 1038181 from trunk: Corrected error message grammar. Modified: couchdb/branches/1.1.x/src/couchdb/couch_rep_db_listener.erl Modified: couchdb

svn commit: r1038193 - in /couchdb/trunk/share: server/util.js server/views.js www/script/test/view_sandboxing.js

2010-11-23 Thread fdmanana
Author: fdmanana Date: Tue Nov 23 16:29:30 2010 New Revision: 1038193 URL: http://svn.apache.org/viewvc?rev=1038193view=rev Log: Seal documents before passing them to map functions (JavaScript view server only). This prevents one map function from modifying a document before it's passed

svn commit: r1038195 - in /couchdb/branches/1.1.x/share: server/util.js server/views.js www/script/test/view_sandboxing.js

2010-11-23 Thread fdmanana
Author: fdmanana Date: Tue Nov 23 16:38:37 2010 New Revision: 1038195 URL: http://svn.apache.org/viewvc?rev=1038195view=rev Log: Merged revision 1038193 from trunk: Seal documents before passing them to map functions (JavaScript view server only). This prevents one map function from modifying

svn commit: r1038196 - in /couchdb/branches/1.0.x/share: server/util.js server/views.js www/script/test/view_sandboxing.js

2010-11-23 Thread fdmanana
Author: fdmanana Date: Tue Nov 23 16:40:23 2010 New Revision: 1038196 URL: http://svn.apache.org/viewvc?rev=1038196view=rev Log: Merged revision 1038193 from trunk: Seal documents before passing them to map functions (JavaScript view server only). This prevents one map function from modifying

svn commit: r1038275 - /couchdb/branches/1.0.x/CHANGES

2010-11-23 Thread fdmanana
Author: fdmanana Date: Tue Nov 23 18:52:25 2010 New Revision: 1038275 URL: http://svn.apache.org/viewvc?rev=1038275view=rev Log: Updated CHANGES for release 1.0.2 to reflect tickets COUCHDB-790 and COUCHDB-925. Modified: couchdb/branches/1.0.x/CHANGES Modified: couchdb/branches/1.0.x

svn commit: r1037448 - in /couchdb/trunk: share/server/loop.js share/server/util.js share/www/script/test/users_db.js src/couchdb/couch_js_functions.hrl

2010-11-21 Thread fdmanana
Author: fdmanana Date: Sun Nov 21 14:03:25 2010 New Revision: 1037448 URL: http://svn.apache.org/viewvc?rev=1037448view=rev Log: Proper verification of the roles property of a user document. Closes COUCHDB-790. Thanks Gabriel Farrell. Modified: couchdb/trunk/share/server/loop.js couchdb

svn commit: r1037450 - in /couchdb/branches/1.1.x: share/server/loop.js share/server/util.js share/www/script/test/users_db.js src/couchdb/couch_js_functions.hrl

2010-11-21 Thread fdmanana
Author: fdmanana Date: Sun Nov 21 14:05:27 2010 New Revision: 1037450 URL: http://svn.apache.org/viewvc?rev=1037450view=rev Log: Merged revision 1037448 from trunk: Proper verification of the roles property of a user document. Closes COUCHDB-790. Thanks Gabriel Farrell. Modified: couchdb

svn commit: r1037452 - /couchdb/trunk/share/www/script/test/users_db.js

2010-11-21 Thread fdmanana
Author: fdmanana Date: Sun Nov 21 14:06:48 2010 New Revision: 1037452 URL: http://svn.apache.org/viewvc?rev=1037452view=rev Log: Add missing semicolons to users_db.js test. This is part of the patch at COUCHDB-790 submitted by Gabriel Farrell. Modified: couchdb/trunk/share/www/script/test

svn commit: r1037455 - /couchdb/trunk/src/couchdb/couch_js_functions.hrl

2010-11-21 Thread fdmanana
Author: fdmanana Date: Sun Nov 21 14:08:33 2010 New Revision: 1037455 URL: http://svn.apache.org/viewvc?rev=1037455view=rev Log: Add proper validation of user_ctx.roles for replication documents. Modified: couchdb/trunk/src/couchdb/couch_js_functions.hrl Modified: couchdb/trunk/src/couchdb

svn commit: r1037457 - /couchdb/branches/1.1.x/src/couchdb/couch_js_functions.hrl

2010-11-21 Thread fdmanana
Author: fdmanana Date: Sun Nov 21 14:09:19 2010 New Revision: 1037457 URL: http://svn.apache.org/viewvc?rev=1037457view=rev Log: Merged revision 1037455 from trunk: Add proper validation of user_ctx.roles for replication documents. Modified: couchdb/branches/1.1.x/src/couchdb

svn commit: r1037449 - in /couchdb/branches/1.0.x: share/server/loop.js share/server/util.js share/www/script/test/users_db.js src/couchdb/couch_js_functions.hrl

2010-11-21 Thread fdmanana
Author: fdmanana Date: Sun Nov 21 14:04:47 2010 New Revision: 1037449 URL: http://svn.apache.org/viewvc?rev=1037449view=rev Log: Merged revision 1037448 from trunk: Proper verification of the roles property of a user document. Closes COUCHDB-790. Thanks Gabriel Farrell. Modified

svn commit: r1037198 - /couchdb/branches/1.1.x/CHANGES

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 12:43:20 2010 New Revision: 1037198 URL: http://svn.apache.org/viewvc?rev=1037198view=rev Log: Updated CHANGES for release 1.1.0. Modified: couchdb/branches/1.1.x/CHANGES Modified: couchdb/branches/1.1.x/CHANGES URL: http://svn.apache.org/viewvc/couchdb

svn commit: r1037206 - in /couchdb/trunk/share/server: loop.js mimeparse.js render.js state.js util.js views.js

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 13:44:42 2010 New Revision: 1037206 URL: http://svn.apache.org/viewvc?rev=1037206view=rev Log: Fixing some jslint warnings. Modified: couchdb/trunk/share/server/loop.js couchdb/trunk/share/server/mimeparse.js couchdb/trunk/share/server/render.js

svn commit: r1037213 - /couchdb/trunk/share/server/util.js

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 14:01:45 2010 New Revision: 1037213 URL: http://svn.apache.org/viewvc?rev=1037213view=rev Log: Bug fix: using undeclared identifier (doc). The function argument is named obj, not doc. Modified: couchdb/trunk/share/server/util.js Modified: couchdb/trunk

svn commit: r1037215 - /couchdb/branches/1.0.x/share/server/util.js

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 14:02:45 2010 New Revision: 1037215 URL: http://svn.apache.org/viewvc?rev=1037215view=rev Log: Merged revision 1037213 from trunk: Bug fix: using undeclared identifier (doc). The function argument is named obj, not doc. Modified: couchdb/branches/1.0.x

svn commit: r1037216 - /couchdb/branches/1.1.x/share/server/util.js

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 14:03:15 2010 New Revision: 1037216 URL: http://svn.apache.org/viewvc?rev=1037216view=rev Log: Merged revision 1037213 from trunk: Bug fix: using undeclared identifier (doc). The function argument is named obj, not doc. Modified: couchdb/branches/1.1.x

svn commit: r1037245 - /couchdb/trunk/share/server/util.js

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 15:56:00 2010 New Revision: 1037245 URL: http://svn.apache.org/viewvc?rev=1037245view=rev Log: Fix recursive call: recursivelySeal is not defined within the body of the anonymous function declaration. Modified: couchdb/trunk/share/server/util.js Modified

svn commit: r1037246 - /couchdb/branches/1.0.x/share/server/util.js

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 15:56:40 2010 New Revision: 1037246 URL: http://svn.apache.org/viewvc?rev=1037246view=rev Log: Merged revision 1037245 from trunk: Fix recursive call: recursivelySeal is not defined within the body of the anonymous function declaration. Modified: couchdb

svn commit: r1037248 - /couchdb/branches/1.1.x/share/server/util.js

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 15:57:39 2010 New Revision: 1037248 URL: http://svn.apache.org/viewvc?rev=1037248view=rev Log: Merged revision 1037245 from trunk: Fix recursive call: recursivelySeal is not defined within the body of the anonymous function declaration. Modified: couchdb

svn commit: r1037249 - /couchdb/trunk/share/www/script/test/view_sandboxing.js

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 15:58:33 2010 New Revision: 1037249 URL: http://svn.apache.org/viewvc?rev=1037249view=rev Log: Fixed indentation of the test view_sandboxing.js - convention is 2 spaces for JavaScript code (not 4 spaces). Modified: couchdb/trunk/share/www/script/test

svn commit: r1037266 - /couchdb/trunk/share/server/render.js

2010-11-20 Thread fdmanana
Author: fdmanana Date: Sat Nov 20 17:03:50 2010 New Revision: 1037266 URL: http://svn.apache.org/viewvc?rev=1037266view=rev Log: Add missing var statements and trailing semicolons. Modified: couchdb/trunk/share/server/render.js Modified: couchdb/trunk/share/server/render.js URL: http

svn commit: r1036813 - in /couchdb/trunk: share/www/script/test/design_docs.js share/www/script/test/view_pagination.js src/couchdb/couch_httpd_view.erl

2010-11-19 Thread fdmanana
Author: fdmanana Date: Fri Nov 19 12:19:38 2010 New Revision: 1036813 URL: http://svn.apache.org/viewvc?rev=1036813view=rev Log: Add aliases start_key, end_key, start_key_docid and end_key_docid. Closes COUCHDB-949. Modified: couchdb/trunk/share/www/script/test/design_docs.js couchdb

svn commit: r1036816 - /couchdb/trunk/CHANGES

2010-11-19 Thread fdmanana
Author: fdmanana Date: Fri Nov 19 12:22:57 2010 New Revision: 1036816 URL: http://svn.apache.org/viewvc?rev=1036816view=rev Log: Updated CHANGES for 1.1.0. Modified: couchdb/trunk/CHANGES Modified: couchdb/trunk/CHANGES URL: http://svn.apache.org/viewvc/couchdb/trunk/CHANGES?rev=1036816r1

svn commit: r1036818 - in /couchdb/trunk: CHANGES share/www/script/test/view_pagination.js src/couchdb/couch_httpd_view.erl

2010-11-19 Thread fdmanana
Author: fdmanana Date: Fri Nov 19 12:37:27 2010 New Revision: 1036818 URL: http://svn.apache.org/viewvc?rev=1036818view=rev Log: For absolute consistency, renamed aliases start_key_docid and end_key_docid to start_key_doc_id and end_key_doc_id. Modified: couchdb/trunk/CHANGES couchdb

svn commit: r1036824 - /couchdb/branches/1.0.x/CHANGES

2010-11-19 Thread fdmanana
Author: fdmanana Date: Fri Nov 19 12:47:24 2010 New Revision: 1036824 URL: http://svn.apache.org/viewvc?rev=1036824view=rev Log: Updated CHANGES for release 1.0.2 and fixed one typo. Modified: couchdb/branches/1.0.x/CHANGES Modified: couchdb/branches/1.0.x/CHANGES URL: http

svn commit: r1036865 - /couchdb/branches/1.1.x/CHANGES

2010-11-19 Thread fdmanana
Author: fdmanana Date: Fri Nov 19 14:19:37 2010 New Revision: 1036865 URL: http://svn.apache.org/viewvc?rev=1036865view=rev Log: Updated CHANGES for release 1.1.0. Modified: couchdb/branches/1.1.x/CHANGES Modified: couchdb/branches/1.1.x/CHANGES URL: http://svn.apache.org/viewvc/couchdb

svn commit: r1036867 - /couchdb/trunk/CHANGES

2010-11-19 Thread fdmanana
Author: fdmanana Date: Fri Nov 19 14:20:55 2010 New Revision: 1036867 URL: http://svn.apache.org/viewvc?rev=1036867view=rev Log: Merged revision 1036865 from branch 1.1.x: Updated CHANGES for release 1.1.0. Modified: couchdb/trunk/CHANGES Modified: couchdb/trunk/CHANGES URL: http

<    1   2   3   4   5   6   7   >