summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/couchdb/couch_db.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couchdb/couch_db.erl b/src/couchdb/couch_db.erl
index 66b18976..e3ab1622 100644
--- a/src/couchdb/couch_db.erl
+++ b/src/couchdb/couch_db.erl
@@ -597,6 +597,7 @@ update_loop(#db{fd=Fd,name=Name,
[Db#db.update_seq, NewSeq]),
Pid = spawn_link(couch_db, start_copy_compact_int, [Db, false]),
Db2 = Db#db{compactor_pid=Pid},
+ couch_file:close(NewFd),
update_loop(Db2)
end;
{OrigFrom, increment_update_seq} ->