activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r1345034 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTransactionStore.java
Date Fri, 01 Jun 2012 09:51:48 GMT
Author: dejanb
Date: Fri Jun  1 09:51:48 2012
New Revision: 1345034

URL: http://svn.apache.org/viewvc?rev=1345034&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-2868 - optimize code a bit now that we don't have
a sync

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTransactionStore.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTransactionStore.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTransactionStore.java?rev=1345034&r1=1345033&r2=1345034&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTransactionStore.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/memory/MemoryTransactionStore.java
Fri Jun  1 09:51:48 2012
@@ -237,13 +237,9 @@ public class MemoryTransactionStore impl
             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();
         }



Mime
View raw message