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 2013/11/11 14:28:47 UTC
svn commit: r1540708 -
/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/Journal.java
Author: andy
Date: Mon Nov 11 13:28:46 2013
New Revision: 1540708
URL: http://svn.apache.org/r1540708
Log:
Name any in-memory journals. Remove unused, commented out code.
Modified:
jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/Journal.java
Modified: jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/Journal.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/Journal.java?rev=1540708&r1=1540707&r2=1540708&view=diff
==============================================================================
--- jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/Journal.java (original)
+++ jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/transaction/Journal.java Mon Nov 11 13:28:46 2013
@@ -80,10 +80,11 @@ class Journal implements Sync, Closeable
public static Journal create(Location location)
{
BufferChannel chan ;
+ String channelName = journalFilename(location) ;
if ( location.isMem() )
- chan = BufferChannelMem.create() ;
+ chan = BufferChannelMem.create(channelName) ;
else
- chan = BufferChannelFile.create(journalFilename(location)) ;
+ chan = BufferChannelFile.create(channelName) ;
return new Journal(chan) ;
}
@@ -106,18 +107,6 @@ class Journal implements Sync, Closeable
}
return posn ;
}
-//
-//// synchronized
-//// public long writeJournal(JournalEntryType type, FileRef fileRef, ByteBuffer buffer)
-//// {
-//// return _write(type, fileRef, buffer, null) ;
-//// }
-////
-// synchronized
-// public long writeJournal(FileRef fileRef, Block block)
-// {
-// return _write(Block, fileRef, null, block) ;
-// }
synchronized
public long write(JournalEntryType type, FileRef fileRef, Block block)