diff options
author | Adam Kocoloski <kocolosk@apache.org> | 2009-12-08 05:16:55 +0000 |
---|---|---|
committer | Adam Kocoloski <kocolosk@apache.org> | 2009-12-08 05:16:55 +0000 |
commit | 995bef1f24aa746200030edc5a4f9e66b280689a (patch) | |
tree | af3fbad582eb58bfd711606a30f0e86a5fcb8131 /src/couchdb/couch_rep.erl | |
parent | f94630fd4af5656b4412ca5de0fc1211d19ddbf3 (diff) |
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
Diffstat (limited to 'src/couchdb/couch_rep.erl')
-rw-r--r-- | src/couchdb/couch_rep.erl | 4 |
1 files changed, 3 insertions, 1 deletions
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. |