}
// XXX: do we need to account for cookies?
- purgedHistories.add(Range.singleton(UnsignedLong.fromLongBits(historyId.getHistoryId())));
+ final UnsignedLong ul = UnsignedLong.fromLongBits(historyId.getHistoryId());
+ purgedHistories.add(Range.closedOpen(ul, UnsignedLong.ONE.plus(ul)));
LOG.debug("{}: Purged history {}", historyId);
}
final FrontendHistoryMetadataBuilder history = getHistory(txId);
if (history != null) {
history.onTransactionCommitted(txId);
- LOG.debug("{}: Aborted transaction {}", txId);
+ LOG.debug("{}: Aborted transaction {}", shardName, txId);
} else {
LOG.warn("{}: Unknown history for commited transaction {}, ignoring", shardName, txId);
}
final FrontendHistoryMetadataBuilder history = getHistory(txId);
if (history != null) {
history.onTransactionPurged(txId);
- LOG.debug("{}: Purged transaction {}", txId);
+ LOG.debug("{}: Purged transaction {}", shardName, txId);
} else {
LOG.warn("{}: Unknown history for purged transaction {}, ignoring", shardName, txId);
}