couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r960663 - /couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl
Date Mon, 05 Jul 2010 19:24:26 GMT
Author: fdmanana
Date: Mon Jul  5 19:24:26 2010
New Revision: 960663

URL: http://svn.apache.org/viewvc?rev=960663&view=rev
Log:
Replacing calls to proplists:get_value/2 with couch_util:get_value/2 (more efficient).

Modified:
    couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl

Modified: couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl?rev=960663&r1=960662&r2=960663&view=diff
==============================================================================
--- couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl (original)
+++ couchdb/branches/new_replicator/src/couchdb/couch_replicate.erl Mon Jul  5 19:24:26 2010
@@ -46,8 +46,8 @@
         
 start(Src, Tgt, Options, UserCtx) ->
     
-    _Continuous = proplists:get_value(continuous, Options, false),
-    _CreateTarget = proplists:get_value(create_target, Options, false),
+    _Continuous = couch_util:get_value(continuous, Options, false),
+    _CreateTarget = couch_util:get_value(create_target, Options, false),
     
     % initalize the replication state, looking for existing rep records
     % for incremental replication.
@@ -384,11 +384,11 @@ make_replication_id(Source, Target, User
     Src = get_rep_endpoint(UserCtx, Source),
     Tgt = get_rep_endpoint(UserCtx, Target),
     Base = [HostName, Src, Tgt] ++
-        case proplists:get_value(filter, Options) of
+        case couch_util:get_value(filter, Options) of
         undefined ->
             [];
         Filter ->
-            [Filter, proplists:get_value(query_params, Options, {[]})]
+            [Filter, couch_util:get_value(query_params, Options, {[]})]
         end,
     couch_util:to_hex(couch_util:md5(term_to_binary(Base))).
 



Mime
View raw message