{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.

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1504668 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Timothy A. Bish 2013-07-18 21:21:38 +00:00
parent dda5c93cd8
commit 11ed6b0e18
1 changed files with 1 additions and 1 deletions

View File

@ -698,7 +698,7 @@ class LevelDBStore extends LockableServiceSupport with BrokerServiceAware with P
}
override def setBatch(id: MessageId): Unit = {
cursorPosition = db.queuePosition(id)
cursorPosition = db.queuePosition(id) + 1
}
}