summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb')
-rw-r--r--src/couchdb/couch_rep.erl7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl
index 6e58ccbc..8e83ebca 100644
--- a/src/couchdb/couch_rep.erl
+++ b/src/couchdb/couch_rep.erl
@@ -455,7 +455,12 @@ make_replication_id({Props}, UserCtx) ->
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, DocIds])
+ case DocIds of
+ undefined ->
+ term_to_binary([HostName, Src, Tgt, Filter, QueryParams]);
+ DocIds ->
+ term_to_binary([HostName, Src, Tgt, Filter, QueryParams, DocIds])
+ end
)),
Extension = maybe_append_options(
[<<"continuous">>, <<"create_target">>], Props),