jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1205103 - /incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java
Date Tue, 22 Nov 2011 17:45:52 GMT
Author: andy
Date: Tue Nov 22 17:45:51 2011
New Revision: 1205103

URL: http://svn.apache.org/viewvc?rev=1205103&view=rev
Log:
Debugging info.

Modified:
    incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java

Modified: incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java
URL: http://svn.apache.org/viewvc/incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java?rev=1205103&r1=1205102&r2=1205103&view=diff
==============================================================================
--- incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java
(original)
+++ incubator/jena/Jena2/TDB/trunk/src/main/java/com/hp/hpl/jena/tdb/transaction/NodeTableTrans.java
Tue Nov 22 17:45:51 2011
@@ -149,11 +149,18 @@ public class NodeTableTrans implements N
         
         offset = base.allocOffset().getId() ;
         // Any outstanding transactions
-        long journalOffset = journal.length() ;
+        //long journalOffset = journal.length() ;
+        //offset += journalOffset ;
+        
+        journalStartOffset = journal.length() ;
+        if ( journalStartOffset != 0 )
+            System.err.printf("\njournalStartOffset not zero: %d/0x%02X\n",journalStartOffset,
journalStartOffset) ;
+        
+        offset += journalStartOffset ;
+        
         //debug("begin: %s %s", txn.getLabel(), label) ;
         //debug("begin: base=%s  offset=0x%X journalOffset=0x%X", base, offset, journalOffset)
;
         
-        offset += journalOffset ;
         this.nodeTableJournal = new NodeTableNative(nodeIndex, journal) ;
         this.nodeTableJournal = NodeTableCache.create(nodeTableJournal, CacheSize, CacheSize)
;
         // Do not add the inline NodeTable here - don't convert it's values by the offset!
 
@@ -192,6 +199,7 @@ public class NodeTableTrans implements N
         System.err.println("label = "+label) ;
         System.err.println("txn = "+txn) ;
         System.err.println("offset = "+offset) ;
+        System.err.println("journalStartOffset = "+journalStartOffset) ;
         
         Iterator<Pair<NodeId, Node>> iter = nodeTableJournal.all() ;
         for ( ; iter.hasNext() ; )



Mime
View raw message