db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r581544 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/store/T_RawStoreFactory.java
Date Wed, 03 Oct 2007 09:48:58 GMT
Author: kahatlen
Date: Wed Oct  3 02:48:58 2007
New Revision: 581544

URL: http://svn.apache.org/viewvc?rev=581544&view=rev
Log:
DERBY-3099: Fixed cleanup code in T_RawStoreFactory.P042() so that it
doesn't hide the actual error and make the test hang for an hour. Also
removed an unused variable.

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/store/T_RawStoreFactory.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/store/T_RawStoreFactory.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/store/T_RawStoreFactory.java?rev=581544&r1=581543&r2=581544&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/store/T_RawStoreFactory.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/unitTests/store/T_RawStoreFactory.java
Wed Oct  3 02:48:58 2007
@@ -5062,7 +5062,6 @@
 
 		ContainerHandle c = t_util.t_openContainer(t, segment, cid, true);
 		Page page = t_util.t_getPage(c, ContainerHandle.FIRST_PAGE_NUMBER);
-		int insertFlag = Page.INSERT_INITIAL | Page.INSERT_OVERFLOW;
 
 		try
 		{
@@ -5190,7 +5189,7 @@
 		}
 		finally	
 		{
-			if (page != null)
+			if (page != null && page.isLatched())
 				page.unlatch();
 			t_util.t_commit(t);
 			t.close();



Mime
View raw message