mirror of https://github.com/apache/activemq.git
AMQ-5815 - remove obsolete remnant of fix for AMQ-2594. holding global lock before attempting to get index and checkpoint lock can lead to deadlock if checkpoint write lock request pops in
This commit is contained in:
parent
330f0ce734
commit
6d44ae6e97
|
@ -88,11 +88,7 @@ public class LocalTransaction extends Transaction {
|
|||
}
|
||||
setState(Transaction.FINISHED_STATE);
|
||||
context.getTransactions().remove(xid);
|
||||
// Sync on transaction store to avoid out of order messages in the cursor
|
||||
// https://issues.apache.org/activemq/browse/AMQ-2594
|
||||
synchronized (transactionStore) {
|
||||
transactionStore.rollback(getTransactionId());
|
||||
|
||||
try {
|
||||
fireAfterRollback();
|
||||
} catch (Throwable e) {
|
||||
|
@ -103,7 +99,6 @@ public class LocalTransaction extends Transaction {
|
|||
throw xae;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public int prepare() throws XAException {
|
||||
|
|
Loading…
Reference in New Issue