couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikewall...@apache.org
Subject [06/11] couch-replicator commit: updated refs/heads/2707-merge-couch_replicator-fixes-from-cloudant-fork to 80708a9
Date Fri, 05 Jun 2015 16:43:02 GMT
Log when node up/down events occur

This is a cherry-pick of:

https://github.com/cloudant/couch_replicator/commit/d40bb6f2e603a7c81f777cc1c4c200ad34c3db42


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/fb4da8d3
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/fb4da8d3
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/fb4da8d3

Branch: refs/heads/2707-merge-couch_replicator-fixes-from-cloudant-fork
Commit: fb4da8d3fec9874f3f96db2cf6fb631ce4aee92d
Parents: 89363ae
Author: Robert Newson <rnewson@apache.org>
Authored: Fri May 15 16:30:55 2015 +0100
Committer: Mike Wallace <mikewallace@apache.org>
Committed: Fri Jun 5 17:20:26 2015 +0100

----------------------------------------------------------------------
 src/couch_replicator_manager.erl | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/fb4da8d3/src/couch_replicator_manager.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_manager.erl b/src/couch_replicator_manager.erl
index 4f32ede..6e83879 100644
--- a/src/couch_replicator_manager.erl
+++ b/src/couch_replicator_manager.erl
@@ -237,10 +237,12 @@ handle_cast(Msg, State) ->
     {stop, {error, {unexpected_cast, Msg}}, State}.
 
 handle_info({nodeup, Node}, State) ->
+    couch_log:notice("Rescanning replicator dbs as ~s came up.", [Node]),
     Live = lists:usort([Node | State#state.live]),
     {noreply, rescan(State#state{live=Live})};
 
 handle_info({nodedown, Node}, State) ->
+    couch_log:notice("Rescanning replicator dbs ~s went down.", [Node]),
     Live = State#state.live -- [Node],
     {noreply, rescan(State#state{live=Live})};
 


Mime
View raw message