diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2010-02-19 07:05:23 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2010-02-19 07:05:23 +0000 |
commit | cb8d26e2c9c37f013691d5088f943bb716e5d427 (patch) | |
tree | bd7d9cf0b6d5cd782a0144443fea6aa3b2de79ef | |
parent | 82ff1a2b0a15dbe181221173f3013befab68f499 (diff) |
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
-rw-r--r-- | src/couchdb/couch_rep.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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) -> |