From dc842619158dcc7aa9d2adc4873a36ba511e3108 Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Fri, 19 Mar 2010 23:57:59 +0000 Subject: Do not use the doc_id list from the previous replication request on subsequent replication requests. Closes COUCHDB-703. Patch by Filipe Manana. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@925488 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index c0010a94..6e58ccbc 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -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), -- cgit v1.2.3