summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Kocoloski <kocolosk@apache.org>2009-12-08 05:16:55 +0000
committerAdam Kocoloski <kocolosk@apache.org>2009-12-08 05:16:55 +0000
commit995bef1f24aa746200030edc5a4f9e66b280689a (patch)
treeaf3fbad582eb58bfd711606a30f0e86a5fcb8131
parentf94630fd4af5656b4412ca5de0fc1211d19ddbf3 (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
-rw-r--r--src/couchdb/couch_rep.erl4
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.