You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by fd...@apache.org on 2011/07/02 20:47:55 UTC
svn commit: r1142260 -
/couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl
Author: fdmanana
Date: Sat Jul 2 18:47:54 2011
New Revision: 1142260
URL: http://svn.apache.org/viewvc?rev=1142260&view=rev
Log:
Merge revision 1142259 from trunk
Replication manager, ignore db monitor messages
Ignore local database monitor messages. These messages
are received in some circunstances because replication
processes spawn local database monitors but never
do the corresponding erlang:demonitor/1,2 calls.
Modified:
couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl
Modified: couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl?rev=1142260&r1=1142259&r2=1142260&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl Sat Jul 2 18:47:54 2011
@@ -190,6 +190,10 @@ handle_info({'EXIT', From, normal}, #sta
% one of the replication start processes terminated successfully
{noreply, State#state{rep_start_pids = Pids -- [From]}};
+handle_info({'DOWN', _Ref, _, _, _}, State) ->
+ % From a db monitor created by a replication process. Ignore.
+ {noreply, State};
+
handle_info(Msg, State) ->
?LOG_ERROR("Replication manager received unexpected message ~p", [Msg]),
{stop, {unexpected_msg, Msg}, State}.