From 995bef1f24aa746200030edc5a4f9e66b280689a Mon Sep 17 00:00:00 2001 From: Adam Kocoloski Date: Tue, 8 Dec 2009 05:16:55 +0000 Subject: release old Fds on replication reboot, shut down child procs in a cleaner order git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@888267 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_rep.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/couchdb') diff --git a/src/couchdb/couch_rep.erl b/src/couchdb/couch_rep.erl index 24b1557f..98413f23 100644 --- a/src/couchdb/couch_rep.erl +++ b/src/couchdb/couch_rep.erl @@ -553,9 +553,11 @@ do_checkpoint(State) -> reader = Reader, writer = Writer } = State, - Pids = [CF, MR, Reader, Writer], + Pids = [Writer, Reader, MR, CF], [unlink(Pid) || Pid <- Pids], [exit(Pid, shutdown) || Pid <- Pids], + close_db(Target), + close_db(Source), {ok, NewState} = init(State#state.init_args), NewState end. -- cgit v1.2.3