mirror of https://github.com/apache/activemq.git
{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:
parent
dda5c93cd8
commit
11ed6b0e18
|
@ -698,7 +698,7 @@ class LevelDBStore extends LockableServiceSupport with BrokerServiceAware with P
|
||||||
}
|
}
|
||||||
|
|
||||||
override def setBatch(id: MessageId): Unit = {
|
override def setBatch(id: MessageId): Unit = {
|
||||||
cursorPosition = db.queuePosition(id)
|
cursorPosition = db.queuePosition(id) + 1
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue