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 rh...@apache.org on 2014/06/05 21:08:58 UTC
svn commit: r1600729 -
/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
Author: rhillegas
Date: Thu Jun 5 19:08:57 2014
New Revision: 1600729
URL: http://svn.apache.org/r1600729
Log:
DERBY-6595: Fix sequence cache-flushing problem during trigger re-compilation: tests passed cleanly on derby-6595-01-aa-dontClearSequenceCache.diff.
Modified:
db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java?rev=1600729&r1=1600728&r2=1600729&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/sql/catalog/DataDictionaryImpl.java Thu Jun 5 19:08:57 2014
@@ -1181,7 +1181,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);
}