couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dam...@apache.org
Subject svn commit: r667188 - /incubator/couchdb/trunk/src/couchdb/couch_db.erl
Date Thu, 12 Jun 2008 18:16:30 GMT
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} ->



Mime
View raw message