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:
Timothy A. Bish 2013-07-09 18:15:26 +00:00
parent cb52dd47f4
commit 5f0dd8ab53
1 changed files with 16 additions and 14 deletions

View File

@ -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)