From 2bdd75901fba402068d08e316a3ac32249307e27 Mon Sep 17 00:00:00 2001 From: John Christopher Anderson Date: Fri, 26 Feb 2010 01:11:02 +0000 Subject: fdmananas patch for filtered replication via COUCHDB-673 git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@916518 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep.erl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/couchdb/couch_rep.erl') diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index 4bad4a9f..c0010a94 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -451,7 +451,11 @@ make_replication_id({Props}, UserCtx) -> % Port = mochiweb_socket_server:get(couch_httpd, port), Src = get_rep_endpoint(UserCtx, proplists:get_value(<<"source">>, Props)), Tgt = get_rep_endpoint(UserCtx, proplists:get_value(<<"target">>, Props)), - Base = couch_util:to_hex(erlang:md5(term_to_binary([HostName, Src, Tgt]))), + Filter = proplists:get_value(<<"filter">>, Props), + QueryParams = proplists:get_value(<<"query_params">>, Props), + Base = couch_util:to_hex(erlang:md5( + term_to_binary([HostName, Src, Tgt, Filter, QueryParams]) + )), Extension = maybe_append_options( [<<"continuous">>, <<"create_target">>], Props), {Base, Extension}. -- cgit v1.2.3