couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kocol...@apache.org
Subject svn commit: r911717 - /couchdb/trunk/src/couchdb/couch_rep.erl
Date Fri, 19 Feb 2010 07:05:24 GMT
Author: kocolosk
Date: Fri Feb 19 07:05:23 2010
New Revision: 911717

URL: http://svn.apache.org/viewvc?rev=911717&view=rev
Log:
keep listeners when rebooting replications

This fixes the problem where rebooted replications would crash at the end with
a badmatch on [] in do_terminate.

Modified:
    couchdb/trunk/src/couchdb/couch_rep.erl

Modified: couchdb/trunk/src/couchdb/couch_rep.erl
URL: http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_rep.erl?rev=911717&r1=911716&r2=911717&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_rep.erl (original)
+++ couchdb/trunk/src/couchdb/couch_rep.erl Fri Feb 19 07:05:23 2010
@@ -604,7 +604,7 @@
         close_db(Target),
         close_db(Source),
         {ok, NewState} = init(State#state.init_args),
-        NewState
+        NewState#state{listeners=State#state.listeners}
     end.
 
 commit_to_both(Source, Target, RequiredSeq) ->



Mime
View raw message