You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2008/06/12 20:16:30 UTC

svn commit: r667188 - /incubator/couchdb/trunk/src/couchdb/couch_db.erl

Author: damien
Date: Thu Jun 12 11:16:30 2008
New Revision: 667188

URL: http://svn.apache.org/viewvc?rev=667188&view=rev
Log:
Fix for COUCHDB-78. Couchdb was failing to close open file handles when compaction attempts need to be retried.

Modified:
    incubator/couchdb/trunk/src/couchdb/couch_db.erl

Modified: incubator/couchdb/trunk/src/couchdb/couch_db.erl
URL: http://svn.apache.org/viewvc/incubator/couchdb/trunk/src/couchdb/couch_db.erl?rev=667188&r1=667187&r2=667188&view=diff
==============================================================================
--- incubator/couchdb/trunk/src/couchdb/couch_db.erl (original)
+++ incubator/couchdb/trunk/src/couchdb/couch_db.erl Thu Jun 12 11:16:30 2008
@@ -597,6 +597,7 @@
                 [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} ->