couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikewall...@apache.org
Subject couch-replicator commit: updated refs/heads/2707-merge-couch_replicator-fixes-from-cloudant-fork to 39bf72f
Date Tue, 02 Jun 2015 17:55:06 GMT
Repository: couchdb-couch-replicator
Updated Branches:
  refs/heads/2707-merge-couch_replicator-fixes-from-cloudant-fork fbab53489 -> 39bf72f86


[squash] Use config:get_integer/3


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/39bf72f8
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/39bf72f8
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/39bf72f8

Branch: refs/heads/2707-merge-couch_replicator-fixes-from-cloudant-fork
Commit: 39bf72f86ea7bd44387a6b6198a05adf0d36833c
Parents: fbab534
Author: Mike Wallace <mikewallace@apache.org>
Authored: Tue Jun 2 18:54:31 2015 +0100
Committer: Mike Wallace <mikewallace@apache.org>
Committed: Tue Jun 2 18:54:31 2015 +0100

----------------------------------------------------------------------
 src/couch_replicator_manager.erl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/39bf72f8/src/couch_replicator_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_manager.erl b/src/couch_replicator_manager.erl
index b136b71..972d8ed 100644
--- a/src/couch_replicator_manager.erl
+++ b/src/couch_replicator_manager.erl
@@ -489,10 +489,10 @@ maybe_start_replication(State, DbName, DocId, RepDoc) ->
         true = ets:insert(?DOC_TO_REP, {{DbName, DocId}, RepId}),
         couch_log:notice("Attempting to start replication `~s` (document `~s`).",
             [pp_rep_id(RepId), DocId]),
-        StartDelaySecs = erlang:max(0, list_to_integer(
-            config:get("replicator", "start_delay", "10"))),
-        StartSplaySecs = erlang:max(1, list_to_integer(
-            config:get("replicator", "start_splay", "50"))),
+        StartDelaySecs = erlang:max(0,
+            config:get_integer("replicator", "start_delay", 10)),
+        StartSplaySecs = erlang:max(1,
+            config:get_integer("replicator", "start_splay", 50)),
         DelaySecs = StartDelaySecs + random:uniform(StartSplaySecs),
         couch_log:notice("Delaying replication `~s` start by ~p seconds.",
             [pp_rep_id(RepId), DelaySecs]),


Mime
View raw message