if (log.isDebugEnabled()) log.debug("found " + danglingRecords.size() + " dangling record(s) in journal");
Iterator it = danglingRecords.entrySet().iterator();
while (it.hasNext()) {
Map.Entry entry = (Map.Entry) it.next();
Uid gtrid = (Uid) entry.getKey();
TransactionLogRecord tlog = (TransactionLogRecord) entry.getValue();
Set uniqueNames = tlog.getUniqueNames();
Set danglingTransactions = getDanglingTransactionsInRecoveredXids(uniqueNames, tlog.getGtrid());
long txTimestamp = gtrid.extractTimestamp();
if (log.isDebugEnabled()) log.debug("recovered XID timestamp: " + txTimestamp + " - oldest in-flight TX timestamp: " + oldestTransactionTimestamp);
if (txTimestamp < oldestTransactionTimestamp) {
if (log.isDebugEnabled()) log.debug("committing dangling transaction with GTRID " + gtrid);
commit(danglingTransactions);