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 mi...@apache.org on 2014/10/12 20:56:26 UTC

svn commit: r1631242 - in /db/derby/code/branches/10.10: ./ java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java

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);
 					}