db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mi...@apache.org
Subject svn commit: r1631242 - in /db/derby/code/branches/10.10: ./ java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
Date Sun, 12 Oct 2014 18:56:26 GMT
Author: mikem
Date: Sun Oct 12 18:56:26 2014
New Revision: 1631242

URL: http://svn.apache.org/r1631242
Log:
DERBY-6595: Fix sequence cache-flushing problem during trigger re-compilation: tests passed
cleanly on derby-6595-01-aa-dontClearSequenceCache.diff.

backported change #1600729 from trunk to 10.10 branch.


Modified:
    db/derby/code/branches/10.10/   (props changed)
    db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java

Propchange: db/derby/code/branches/10.10/
------------------------------------------------------------------------------
  Merged /db/derby/code/trunk:r1600729

Modified: db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java?rev=1631242&r1=1631241&r2=1631242&view=diff
==============================================================================
--- db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
(original)
+++ db/derby/code/branches/10.10/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
Sun Oct 12 18:56:26 2014
@@ -1203,7 +1203,10 @@ public final class	DataDictionaryImpl
 					*/
 					if (ddlUsers == 0 && readersInDDLMode == 0)
 					{
-						clearCaches();
+						// Until we implement ALTER SEQUENCE, there should be no need
+                        // to clear the sequence cache. Always clearing the sequence cache
+                        // here gives rise to heisenbug DERBY-6595.
+						clearCaches( false );
 						setCacheMode(DataDictionary.COMPILE_ONLY_MODE);
 					}
 



Mime
View raw message