db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r427796 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/log/LogToFile.java
Date Tue, 01 Aug 2006 23:44:49 GMT
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.v.lunteren@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(



Mime
View raw message