Return-Path: X-Original-To: apmail-couchdb-commits-archive@www.apache.org Delivered-To: apmail-couchdb-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 31D788B67 for ; Wed, 10 Aug 2011 20:24:29 +0000 (UTC) Received: (qmail 21295 invoked by uid 500); 10 Aug 2011 20:24:29 -0000 Delivered-To: apmail-couchdb-commits-archive@couchdb.apache.org Received: (qmail 21201 invoked by uid 500); 10 Aug 2011 20:24:28 -0000 Mailing-List: contact commits-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@couchdb.apache.org Delivered-To: mailing list commits@couchdb.apache.org Received: (qmail 21194 invoked by uid 99); 10 Aug 2011 20:24:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 20:24:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Aug 2011 20:24:27 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id BF7DA2388A3F for ; Wed, 10 Aug 2011 20:24:07 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1156352 - /couchdb/branches/1.0.x/src/couchdb/couch_log.erl Date: Wed, 10 Aug 2011 20:24:07 -0000 To: commits@couchdb.apache.org From: rnewson@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110810202407.BF7DA2388A3F@eris.apache.org> 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.