summaryrefslogtreecommitdiff
path: root/src/couchdb
diff options
context:
space:
mode:
authorDamien F. Katz <damien@apache.org>2008-06-12 18:16:30 +0000
committerDamien F. Katz <damien@apache.org>2008-06-12 18:16:30 +0000
commit479ef9df7559cc29ef558aa889637bd5a34516b2 (patch)
tree2b24a869b317b38449c5240e87cef3d09b3e814b /src/couchdb
parent97f034032743b90e791ec6e15209d11b1e84af2d (diff)
Fix for COUCHDB-78. Couchdb was failing to close open file handles when compaction attempts need to be retried.
git-svn-id: https://svn.apache.org/repos/asf/incubator/couchdb/trunk@667188 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb')
-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} ->