couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1142259 - /couchdb/trunk/src/couchdb/couch_replication_manager.erl
Date Sat, 02 Jul 2011 18:46:56 GMT
Author: fdmanana
Date: Sat Jul  2 18:46:56 2011
New Revision: 1142259

URL: http://svn.apache.org/viewvc?rev=1142259&view=rev
Log:
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/trunk/src/couchdb/couch_replication_manager.erl

Modified: couchdb/trunk/src/couchdb/couch_replication_manager.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_replication_manager.erl?rev=1142259&r1=1142258&r2=1142259&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_replication_manager.erl (original)
+++ couchdb/trunk/src/couchdb/couch_replication_manager.erl Sat Jul  2 18:46:56 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}.



Mime
View raw message