couchdb-commits mailing list archives

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

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

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

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



Mime
View raw message