From cb8d26e2c9c37f013691d5088f943bb716e5d427 Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Fri, 19 Feb 2010 07:05:23 +0000 Subject: keep listeners when rebooting replications This fixes the problem where rebooted replications would crash at the end with a badmatch on [] in do_terminate. git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@911717 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index c182c001..4e6ad12d 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -604,7 +604,7 @@ do_checkpoint(State) -> 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) -> -- cgit v1.2.3