couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r925488 - /couchdb/trunk/src/couchdb/couch_rep.erl
Date Fri, 19 Mar 2010 23:57:59 GMT
Author: jan
Date: Fri Mar 19 23:57:59 2010
New Revision: 925488

URL: http://svn.apache.org/viewvc?rev=925488&view=rev
Log:
Do not use the doc_id list from the previous replication request
on subsequent replication requests.

Closes COUCHDB-703.

Patch by Filipe Manana.

Modified:
    couchdb/trunk/src/couchdb/couch_rep.erl

Modified: couchdb/trunk/src/couchdb/couch_rep.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep.erl?rev=925488&r1=925487&r2=925488&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep.erl Fri Mar 19 23:57:59 2010
@@ -453,8 +453,9 @@ make_replication_id({Props}, UserCtx) ->
     Tgt = get_rep_endpoint(UserCtx, proplists:get_value(<<"target">>, Props)),
   
     Filter = proplists:get_value(<<"filter">>, Props),
     QueryParams = proplists:get_value(<<"query_params">>, Props),
+    DocIds = proplists:get_value(<<"doc_ids">>, Props),
     Base = couch_util:to_hex(erlang:md5(
-        term_to_binary([HostName, Src, Tgt, Filter, QueryParams])
+        term_to_binary([HostName, Src, Tgt, Filter, QueryParams, DocIds])
     )),
     Extension = maybe_append_options(
         [<<"continuous">>, <<"create_target">>], Props),



Mime
View raw message