You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by mi...@apache.org on 2015/06/05 18:47:47 UTC

[07/13] couch-replicator commit: updated refs/heads/master to 80708a9

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/master
Commit: fb4da8d3fec9874f3f96db2cf6fb631ce4aee92d
Parents: 89363ae
Author: Robert Newson <rn...@apache.org>
Authored: Fri May 15 16:30:55 2015 +0100
Committer: Mike Wallace <mi...@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})};