compactingLock.readLock().lock();
try
{
JournalInternalRecord addRecord = new JournalAddRecordTX(true, txID, id, recordType, record);
JournalTransaction tx = getTransactionInfo(txID);
lockAppend.lock();
try
{
JournalFile usedFile = appendRecord(addRecord, false, false, tx, null);
tx.addPositive(usedFile, id, addRecord.getEncodeSize());
}
finally
{
lockAppend.unlock();
}