You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ko...@apache.org on 2010/02/19 08:05:24 UTC
svn commit: r911717 - /couchdb/trunk/src/couchdb/couch_rep.erl
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) ->