Author: jan
Date: Fri Mar 19 23:58:06 2010
New Revision: 925489
URL: http://svn.apache.org/viewvc?rev=925489&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/branches/0.11.x/src/couchdb/couch_rep.erl
Modified: couchdb/branches/0.11.x/src/couchdb/couch_rep.erl
URL:
http://svn.apache.org/viewvc/couchdb/branches/0.11.x/src/couchdb/couch_rep.erl?rev=925489&r1=925488&r2=925489&view=diff
==============================================================================
--- couchdb/branches/0.11.x/src/couchdb/couch_rep.erl (original)
+++ couchdb/branches/0.11.x/src/couchdb/couch_rep.erl Fri Mar 19 23:58:06 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),