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/05/30 21:29:08 UTC

svn commit: r1129315 - in /incubator/jena/Experimental/TxTDB/trunk/src-dev/tx: ObjectFileTrans.java TxMain.java

Author: andy
Date: Mon May 30 19:29:08 2011
New Revision: 1129315

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

Modified:
    incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/ObjectFileTrans.java
    incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java

Modified: incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/ObjectFileTrans.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/ObjectFileTrans.java?rev=1129315&r1=1129314&r2=1129315&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/ObjectFileTrans.java (original)
+++ incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/ObjectFileTrans.java Mon May 30 19:29:08 2011
@@ -33,10 +33,10 @@ public class ObjectFileTrans implements 
         // The other object file must use the same allocation policy.
         this.journal = journal ;
         this.base = base ;
-        begin() ;
         this.other = other ;
         this.alloc = base.length() ;
         this.startAlloc = base.length() ;
+        begin() ;
     }
 
     // Begin read ==> passthrough.
@@ -66,7 +66,7 @@ public class ObjectFileTrans implements 
     }
     
     /** Copy from the temporary file to the real file */
-    private void append()
+    public /*temporary*/ void append()
     {
         // We could write directly to the real file if:
         //   we record the truncate point needed for an abort

Modified: incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java
URL: http://svn.apache.org/viewvc/incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java?rev=1129315&r1=1129314&r2=1129315&view=diff
==============================================================================
--- incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java (original)
+++ incubator/jena/Experimental/TxTDB/trunk/src-dev/tx/TxMain.java Mon May 30 19:29:08 2011
@@ -122,12 +122,24 @@ public class TxMain
         file.write(stringToBuffer("12")) ;
         System.out.println("file2:") ;
         dump(file2) ;
+        
+        
+        System.out.println("append") ;
+        file.append();
+        dump(file1) ;
+        System.out.println("reappend") ;
+        file.append();
+        dump(file1) ;
+        
         System.out.println("commit") ;
         file.commit();
         System.out.println("file1:") ;
         dump(file1) ;
         System.out.println("file2:") ;
         dump(file2) ;
+
+//        System.out.println("file2:") ;
+//        dump(file2) ;
         
         exit(0) ;