couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r960345 - /couchdb/branches/new_replicator/src/couchdb/couch_httpd_rep.erl
Date Sun, 04 Jul 2010 15:21:29 GMT
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])->



Mime
View raw message