mirror of https://github.com/apache/activemq.git
https://issues.apache.org/jira/browse/AMQ-2868 - optimize code a bit now that we don't have a sync
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1345034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
6d041dc2a5
commit
15f85cd768
|
@ -237,13 +237,9 @@ public class MemoryTransactionStore implements TransactionStore {
|
|||
tx = inflightTransactions.remove(txid);
|
||||
}
|
||||
|
||||
if (tx == null) {
|
||||
if (postCommit != null) {
|
||||
postCommit.run();
|
||||
}
|
||||
return;
|
||||
if (tx != null) {
|
||||
tx.commit();
|
||||
}
|
||||
tx.commit();
|
||||
if (postCommit != null) {
|
||||
postCommit.run();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue