You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2011/07/25 17:00:35 UTC

svn commit: r1150734 - in /incubator/jena/Experimental/TxTDB/trunk/src: main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java

Author: andy
Date: Mon Jul 25 15:00:31 2011
New Revision: 1150734

URL: http://svn.apache.org/viewvc?rev=1150734&view=rev
Log: (empty)

Modified:
    incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java
    incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java

Modified: incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java?rev=1150734&r1=1150733&r2=1150734&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java (original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java Mon Jul 25 15:00:31 2011
@@ -51,7 +51,7 @@ public class NodeTableTrans implements N
         this.nodeIndex = nodeIndex ;
         this.journal = journal ;
         nodeTableJournal = new NodeTableNative(nodeIndex, journal) ;
-        nodeTableJournal = NodeTableCache.create(sub, CacheSize, CacheSize) ;
+        nodeTableJournal = NodeTableCache.create(nodeTableJournal, CacheSize, CacheSize) ;
     }
 
     public void setPassthrough(boolean v)   { passthrough = v ; }

Modified: incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java?rev=1150734&r1=1150733&r2=1150734&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java (original)
+++ incubator/jena/Experimental/TxTDB/trunk/src/test/java/com/hp/hpl/jena/tdb/transaction/TestTransSystem.java Mon Jul 25 15:00:31 2011
@@ -28,6 +28,7 @@ import java.util.concurrent.TimeUnit ;
 import java.util.concurrent.atomic.AtomicInteger ;
 
 import org.openjena.atlas.lib.FileOps ;
+import org.openjena.atlas.lib.Lib ;
 
 import com.hp.hpl.jena.datatypes.xsd.XSDDatatype ;
 import com.hp.hpl.jena.graph.Node ;
@@ -202,9 +203,9 @@ public class TestTransSystem
         protected abstract int change(DatasetGraphTxn dsg, int id, int i) ;
     }
 
-    static long pause(int maxInternal)
+    static void pause(int maxInternal)
     {
-        return Math.round(Math.random()*maxInternal) ;
+        Lib.sleep((int)Math.round(Math.random()*maxInternal)) ;
     }
     
     static Quad genQuad(int value)