protected final LocalTransaction removeLocalTransactionInternal(Transaction tx) { LocalTransaction localTx = localTransactions.get(tx); if (localTx != null) { globalToLocalTransactions.remove(localTx.getGlobalTransaction()); localTransactions.remove(tx); releaseResources(localTx); } return localTx; }
public final RemoteTransaction removeRemoteTransaction(GlobalTransaction txId) { RemoteTransaction removed = remoteTransactions.remove(txId); if (trace) log.tracef("Removed remote transaction %s ? %s", txId, removed); releaseResources(removed); return removed; }