activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gtu...@apache.org
Subject svn commit: r1207693 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
Date Mon, 28 Nov 2011 23:20:08 GMT
Author: gtully
Date: Mon Nov 28 23:20:07 2011
New Revision: 1207693

URL: http://svn.apache.org/viewvc?rev=1207693&view=rev
Log:
https://issues.apache.org/jira/browse/AMQ-2868 - fix issue with blocked transaction completion
in highly concurrent systems. It was possible to miss an after completion callback

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java?rev=1207693&r1=1207692&r2=1207693&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/MessageDatabase.java
Mon Nov 28 23:20:07 2011
@@ -1061,6 +1061,10 @@ public abstract class MessageDatabase ex
             }
         }
         if (inflightTx == null) {
+            if (after != null) {
+                // since we don't push this after and we may find another, lets run it now
+                after.run();
+            }
             return;
         }
 



Mime
View raw message