diff options
author | Damien F. Katz <damien@apache.org> | 2008-12-22 20:35:50 +0000 |
---|---|---|
committer | Damien F. Katz <damien@apache.org> | 2008-12-22 20:35:50 +0000 |
commit | c823bd2e8b3990b5c55dde54705d6866ad1eda4f (patch) | |
tree | 4be1ffa83f983e36038841f8b25812f2cfe6d482 /src/couchdb/couch_db_updater.erl | |
parent | 112e286f3c0727caf6f6c96caa2ba40f31552ac7 (diff) |
Fix for leaked file handles when not explicitly closed, added file stats code for checking for leaked file handles, and some refactoring of the view api.
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@728764 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/couchdb/couch_db_updater.erl')
-rw-r--r-- | src/couchdb/couch_db_updater.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/couchdb/couch_db_updater.erl b/src/couchdb/couch_db_updater.erl index 68c3a1fc..b4faefee 100644 --- a/src/couchdb/couch_db_updater.erl +++ b/src/couchdb/couch_db_updater.erl @@ -179,9 +179,9 @@ handle_cast({compact_done, CompactFilepath}, #db{filepath=Filepath}=Db) -> ?LOG_INFO("Compaction file still behind main file " "(update seq=~p. compact update seq=~p). Retrying.", [Db#db.update_seq, NewSeq]), + couch_file:close(NewFd), Pid = spawn_link(fun() -> start_copy_compact(Db) end), Db2 = Db#db{compactor_pid=Pid}, - couch_file:close(NewFd), {noreply, Db2} end. |