summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb')
-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.