diff options
author | Jan Lehnardt <jan@apache.org> | 2010-03-19 23:57:59 +0000 |
---|---|---|
committer | Jan Lehnardt <jan@apache.org> | 2010-03-19 23:57:59 +0000 |
commit | dc842619158dcc7aa9d2adc4873a36ba511e3108 (patch) | |
tree | 39699563d421295be698d647812daa1bb58edb59 /src/couchdb/couch_rep.erl | |
parent | fbcc835d06dc017aebaf0b837bf56ca524f3c9c5 (diff) |
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
Diffstat (limited to 'src/couchdb/couch_rep.erl')
-rw-r--r-- | src/couchdb/couch_rep.erl | 3 |
1 files changed, 2 insertions, 1 deletions
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), |