mirror of https://github.com/apache/activemq.git
Fix for failing LveelDB unit tests where only non-persistent messages are sent in a TX. The preCommit wasn't being run so the Queue's orderIndexUpdates structure wasn't getting updated with the TX to process in the postCommit phase.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1501420 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
cb52dd47f4
commit
5f0dd8ab53
|
@ -421,6 +421,8 @@ class LevelDBStore extends LockableServiceSupport with BrokerServiceAware with P
|
|||
def commit(txid: TransactionId, wasPrepared: Boolean, preCommit: Runnable, postCommit: Runnable) = {
|
||||
transactions.remove(txid) match {
|
||||
case null =>
|
||||
// Only in-flight non-persistent messages in this TX.
|
||||
preCommit.run()
|
||||
postCommit.run()
|
||||
case tx =>
|
||||
val done = new CountDownLatch(1)
|
||||
|
|
Loading…
Reference in New Issue