{
// See DatasetBuilderTxn - same name generation code.
// [TxTDB:TODO]
RecordFactory recordFactory = new RecordFactory(SystemTDB.LenNodeHash, SystemTDB.SizeOfNodeId) ;
NodeTable baseNodeTable = dsg.getConfig().nodeTables.get(fileRef) ;
String objFilename = fileRef.getFilename()+"-"+Names.extJournal ;
objFilename = dsg.getLocation().absolute(objFilename) ;
File jrnlFile = new File(objFilename) ;
if ( jrnlFile.exists() && jrnlFile.length() > 0 )
{
syslog.info("Recovering node data: "+fileRef.getFilename()) ;
ObjectFile dataJrnl = FileFactory.createObjectFileDisk(objFilename) ;
NodeTableTrans ntt = new NodeTableTrans(null, objFilename, baseNodeTable, new IndexMap(recordFactory), dataJrnl) ;
ntt.append() ;
ntt.close() ;
dataJrnl.close() ;
baseNodeTable.sync() ;
}
if ( jrnlFile.exists() )
FileOps.delete(objFilename) ;
}