couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [couchdb] branch 63012-scheduler updated: [fixup] Use define instead of magic constant
Date Wed, 12 Apr 2017 15:53:14 GMT
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 63012-scheduler
in repository https://gitbox.apache.org/repos/asf/couchdb.git

The following commit(s) were added to refs/heads/63012-scheduler by this push:
       new  c4732f5   [fixup] Use define instead of magic constant
c4732f5 is described below

commit c4732f584a718babfc6c510ea217275b2fc750ea
Author: Nick Vatamaniuc <vatamane@apache.org>
AuthorDate: Wed Apr 12 11:53:09 2017 -0400

    [fixup] Use define instead of magic constant
---
 src/couch_replicator/src/couch_replicator.erl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/couch_replicator/src/couch_replicator.erl b/src/couch_replicator/src/couch_replicator.erl
index 883c832..e393f44 100644
--- a/src/couch_replicator/src/couch_replicator.erl
+++ b/src/couch_replicator/src/couch_replicator.erl
@@ -27,6 +27,7 @@
 -include("couch_replicator_api_wrap.hrl").
 -include_lib("couch_mrview/include/couch_mrview.hrl").
 
+-define(DESIGN_DOC_CREATION_DELAY_MSEC, 1000).
 -define(REPLICATION_STATES, [
     initializing,  % Just added to scheduler
     error,         % Could not be turned into a replication job
@@ -167,7 +168,7 @@ stream_terminal_docs_info(Db, Cb, UserAcc, States) ->
             Msg = "Could not find _design/~s ~s view in replicator db ~s : ~p",
             couch_log:error(Msg, [DDoc, View, Db, Reason]),
             couch_replicator_docs:ensure_cluster_rep_ddoc_exists(Db),
-            timer:sleep(1000),
+            timer:sleep(?DESIGN_DOC_CREATION_DELAY_MSEC),
             stream_terminal_docs_info(Db, Cb, UserAcc, States)
     end.
 

-- 
To stop receiving notification emails like this one, please contact
['"commits@couchdb.apache.org" <commits@couchdb.apache.org>'].

Mime
View raw message