db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From banda...@apache.org
Subject svn commit: r376372 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java
Date Thu, 09 Feb 2006 18:22:11 GMT
Author: bandaram
Date: Thu Feb  9 10:22:07 2006
New Revision: 376372

URL: http://svn.apache.org/viewcvs?rev=376372&view=rev
Log:
DERBY-541: Do not apply soft upgrade changes if database is readOnly.

Submitted by Satheesh Bandaram (satheesh@sourcery.org)

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

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java
URL: http://svn.apache.org/viewcvs/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java?rev=376372&r1=376371&r2=376372&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DD_Version.java Thu
Feb  9 10:22:07 2006
@@ -179,7 +179,7 @@
 		boolean minorOnly = false;
 		boolean performMajorUpgrade = false;
 		boolean softUpgradeRun = false;
-
+		boolean isReadOnly = bootingDictionary.af.isReadOnly();	
 
 		if (dictionaryVersion.majorVersionNumber == majorVersionNumber) {
 
@@ -207,7 +207,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