couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fdman...@apache.org
Subject svn commit: r1142260 - /couchdb/branches/1.1.x/src/couchdb/couch_replication_manager.erl
Date Sat, 02 Jul 2011 18:47:55 GMT
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}.



Mime
View raw message