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.
|