activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tab...@apache.org
Subject svn commit: r1504668 - /activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
Date Thu, 18 Jul 2013 21:21:38 GMT
Author: tabish
Date: Thu Jul 18 21:21:38 2013
New Revision: 1504668

URL: http://svn.apache.org/r1504668
Log:
{LevelDB] fix for StoreQueueCursorLevelDBNoDuplicateTest failure.  When the cursor calls setBatch
and then recovering the next batch its expecting the batch to start at lastMsgId + 1 so we
were seeing a single duplicate message and since audit was disabled it was delivered.  

Modified:
    activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala

Modified: activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala?rev=1504668&r1=1504667&r2=1504668&view=diff
==============================================================================
--- activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
(original)
+++ activemq/trunk/activemq-leveldb-store/src/main/scala/org/apache/activemq/leveldb/LevelDBStore.scala
Thu Jul 18 21:21:38 2013
@@ -698,7 +698,7 @@ class LevelDBStore extends LockableServi
     }
 
     override def setBatch(id: MessageId): Unit = {
-      cursorPosition = db.queuePosition(id)
+      cursorPosition = db.queuePosition(id) + 1
     }
 
   }



Mime
View raw message