db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fuzzylo...@apache.org
Subject svn commit: r426699 - /db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java
Date Fri, 28 Jul 2006 23:18:04 GMT
Author: fuzzylogic
Date: Fri Jul 28 16:18:04 2006
New Revision: 426699

URL: http://svn.apache.org/viewvc?rev=426699&view=rev
Log:
DERBY-541: Read-only databases fail to boot after soft upgrade.
Merging revision 376372 from trunk.

Modified:
    db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java

Modified: db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java?rev=426699&r1=426698&r2=426699&view=diff
==============================================================================
--- db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java
(original)
+++ db/derby/code/branches/10.1/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java
Fri Jul 28 16:18:04 2006
@@ -177,7 +177,7 @@
 		boolean minorOnly = false;
 		boolean performMajorUpgrade = false;
 		boolean softUpgradeRun = false;
-
+		boolean isReadOnly = bootingDictionary.af.isReadOnly();	
 
 		if (dictionaryVersion.majorVersionNumber == majorVersionNumber) {
 
@@ -205,7 +205,7 @@
 			doFullUpgrade( tc, dictionaryVersion.majorVersionNumber );
 		}
 
-		if (!minorOnly) {
+		if (!minorOnly && !isReadOnly) {
 			// apply changes that can be made and will continue to work
 			// against previous version.
 



Mime
View raw message