Return-Path: Delivered-To: apmail-db-derby-commits-archive@www.apache.org Received: (qmail 353 invoked from network); 4 May 2007 14:49:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2007 14:49:10 -0000 Received: (qmail 60734 invoked by uid 500); 4 May 2007 14:49:17 -0000 Delivered-To: apmail-db-derby-commits-archive@db.apache.org Received: (qmail 60699 invoked by uid 500); 4 May 2007 14:49:17 -0000 Mailing-List: contact derby-commits-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: "Derby Development" List-Id: Delivered-To: mailing list derby-commits@db.apache.org Received: (qmail 60688 invoked by uid 99); 4 May 2007 14:49:17 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 07:49:17 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 07:49:10 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 1E5071A983A; Fri, 4 May 2007 07:48:50 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: svn commit: r535270 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java Date: Fri, 04 May 2007 14:48:49 -0000 To: derby-commits@db.apache.org From: kristwaa@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070504144850.1E5071A983A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: kristwaa Date: Fri May 4 07:48:49 2007 New Revision: 535270 URL: http://svn.apache.org/viewvc?view=rev&rev=535270 Log: DERBY-2020: Change of mode for opening log files from "rws" to "rwd". Patch contributed by Olav Sandstå. Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java?view=diff&rev=535270&r1=535269&r2=535270 ============================================================================== --- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java (original) +++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java Fri May 4 07:48:49 2007 @@ -912,7 +912,7 @@ lastFlush = endPosition; //if write sync is true , prellocate the log file - //and reopen the file in rws mode. + //and reopen the file in rwd mode. if(isWriteSynced) { //extend the file by wring zeros to it @@ -3112,7 +3112,7 @@ lastFlush = firstLog.getFilePointer(); //if write sync is true , prellocate the log file - //and reopen the file in rws mode. + //and reopen the file in rwd mode. if(isWriteSynced) { //extend the file by wring zeros to it @@ -5028,7 +5028,7 @@ } } - StorageRandomAccessFile log = privRandomAccessFile(logFile, "rws"); + StorageRandomAccessFile log = privRandomAccessFile(logFile, "rwd"); return log ; }