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:
Bosanac Dejan 2012-06-01 09:51:48 +00:00
parent 6d041dc2a5
commit 15f85cd768
1 changed files with 2 additions and 6 deletions

View File

@ -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();
}