db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r470573 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java
Date Thu, 02 Nov 2006 22:39:53 GMT
Author: kahatlen
Date: Thu Nov  2 14:39:53 2006
New Revision: 470573

URL: http://svn.apache.org/viewvc?view=rev&rev=470573
Log:
DERBY-801 (partial) Allow parallel access to data files

DERBY-801-6.patch remedies the noise from the iosInProgress sanity
checking by checking the committed drop state before croaking.
Patch contributed by Anders Morken.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java?view=diff&rev=470573&r1=470572&r2=470573
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java
(original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/store/raw/data/RAFContainer4.java
Thu Nov  2 14:39:53 2006
@@ -132,7 +132,12 @@
 
     synchronized void closeContainer() {
         if (SanityManager.DEBUG) {
-            SanityManager.ASSERT(iosInProgress == 0,
+            // Any IOs in progress to a container being dropped will be
+            // ignored, so we should not complain about starting a close
+            // while there are IOs in progress if it is being dropped
+            // anyway.
+            SanityManager.ASSERT( (iosInProgress == 0)
+                    || getCommittedDropState(),
                     "Container closed while IO operations are in progress. "
                     + " This should not happen.");
         }



Mime
View raw message