couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject svn commit: r1156351 - /couchdb/branches/1.1.x/src/couchdb/couch_log.erl
Date Wed, 10 Aug 2011 20:23:52 GMT
Author: rnewson
Date: Wed Aug 10 20:23:52 2011
New Revision: 1156351

URL: http://svn.apache.org/viewvc?rev=1156351&view=rev
Log:
COUCHDB-1244 - close file descriptor in couch_log:read/2

Modified:
    couchdb/branches/1.1.x/src/couchdb/couch_log.erl

Modified: couchdb/branches/1.1.x/src/couchdb/couch_log.erl
URL: http://svn.apache.org/viewvc/couchdb/branches/1.1.x/src/couchdb/couch_log.erl?rev=1156351&r1=1156350&r2=1156351&view=diff
==============================================================================
--- couchdb/branches/1.1.x/src/couchdb/couch_log.erl (original)
+++ couchdb/branches/1.1.x/src/couchdb/couch_log.erl Wed Aug 10 20:23:52 2011
@@ -180,4 +180,5 @@ read(Bytes, Offset) ->
     % TODO: make streaming
 
     {ok, Chunk} = file:pread(Fd, Start, LogFileSize),
+    ok = file:close(Fd),
     Chunk.



Mime
View raw message