compactingLock.readLock().lock();
try
{
JournalInternalRecord updateRecordTX = new JournalAddRecordTX(false, txID, id, recordType, record);
JournalTransaction tx = getTransactionInfo(txID);
lockAppend.lock();
try
{
JournalFile usedFile = appendRecord(updateRecordTX, false, false, tx, null);
if (JournalImpl.TRACE_RECORDS)
{
JournalImpl.traceRecord("appendUpdateRecordTransactional::txID=" + txID +
",id=" +
id +
", userRecordType=" +
recordType +
", usedFile = " +
usedFile);
}
tx.addPositive(usedFile, id, updateRecordTX.getEncodeSize());
}
finally
{
lockAppend.unlock();
}