@Override public void onReadUpdateRecord(final RecordInfo info) throws Exception { loadManager.updateRecord(info); }
@Override public void onReadCommitRecord(final long transactionID, final int numberOfRecords) throws Exception { // It is possible that the TX could be null, since deletes could have happened in the journal. TransactionHolder tx = loadTransactions.get(transactionID); // We can remove local Tx without associated records if (tx != null) { tx.committed = true; for (RecordInfo txRecord : tx.recordInfos) { if (txRecord.isUpdate) { loadManager.updateRecord(txRecord); } else { loadManager.addRecord(txRecord); } } } }
@Override public void onReadUpdateRecord(final RecordInfo info) throws Exception { checkID(info.id); hasData.lazySet(true); loadManager.updateRecord(info); JournalRecord posFiles = records.get(info.id); if (posFiles != null) { // It's legal for this to be null. The file(s) with the may // have been deleted // just leaving some updates in this file posFiles.addUpdateFile(file, info.data.length + JournalImpl.SIZE_ADD_RECORD + 1); // +1 = compact // count } }
@Override public void onReadUpdateRecord(final RecordInfo info) throws Exception { checkID(info.id); hasData.lazySet(true); loadManager.updateRecord(info); JournalRecord posFiles = records.get(info.id); if (posFiles != null) { // It's legal for this to be null. The file(s) with the may // have been deleted // just leaving some updates in this file posFiles.addUpdateFile(file, info.data.length + JournalImpl.SIZE_ADD_RECORD + 1); // +1 = compact // count } }
for (RecordInfo txRecord : tx.recordInfos) { if (txRecord.isUpdate) { loadManager.updateRecord(txRecord); } else { loadManager.addRecord(txRecord);
for (RecordInfo txRecord : tx.recordInfos) { if (txRecord.isUpdate) { loadManager.updateRecord(txRecord); } else { loadManager.addRecord(txRecord);