You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by fu...@apache.org on 2006/08/02 01:44:49 UTC

svn commit: r427796 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java

Author: fuzzylogic
Date: Tue Aug  1 16:44:49 2006
New Revision: 427796

URL: http://svn.apache.org/viewvc?rev=427796&view=rev
Log:
DERBY-1241: When booting a database under security manager, boot may fail with
message java.sql.SQLException: Java exception: 'access denied 
(java.io.FilePermission for logmirror.ctrl if database was not shutdown cleanly
after previous access. Fix uses existing privExists method to access the file,
avoiding the SecurityException.

Committed for Myrna Van Lunteren <m....@gmail.com>

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?rev=427796&r1=427795&r2=427796&view=diff
==============================================================================
--- 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 Tue Aug  1 16:44:49 2006
@@ -2985,7 +2985,7 @@
                     }
 						
 					if (checkpointInstant == LogCounter.INVALID_LOG_INSTANT &&
-										getMirrorControlFileName().exists())
+										privExists(getMirrorControlFileName()))
                     {
 						checkpointInstant =
                             readControlFile(