You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2010/07/04 17:21:29 UTC
svn commit: r960345 -
/couchdb/branches/new_replicator/src/couchdb/couch_httpd_rep.erl
Author: fdmanana
Date: Sun Jul 4 15:21:20 2010
New Revision: 960345
URL: http://svn.apache.org/viewvc?rev=960345&view=rev
Log:
Add "cancel" option to the new replicator and replace "create_target" with "continuous" when parsing the continuous option.
Modified:
couchdb/branches/new_replicator/src/couchdb/couch_httpd_rep.erl
Modified: couchdb/branches/new_replicator/src/couchdb/couch_httpd_rep.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_httpd_rep.erl?rev=960345&r1=960344&r2=960345&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_httpd_rep.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_httpd_rep.erl Sun Jul 4 15:21:20 2010
@@ -88,10 +88,12 @@ parse_rep_db(<<DbName/binary>>) ->
convert_options([])->
[];
+convert_options([{<<"cancel">>, V}|R])->
+ [{cancel, V}|convert_options(R)];
convert_options([{<<"create_target">>, V}|R])->
[{create_target, V}|convert_options(R)];
convert_options([{<<"continuous">>, V}|R])->
- [{create_target, V}|convert_options(R)];
+ [{continuous, V}|convert_options(R)];
convert_options([{<<"filter">>, V}|R])->
[{filter, V}|convert_options(R)];
convert_options([{<<"query_params">>, V}|R])->