fix for JmsDurableTopicSlowReceiveTest - we must update cursor after iterating

git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@982511 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Bosanac Dejan 2010-08-05 09:04:14 +00:00
parent 6dffe4debe
commit 8cb9ef312f
1 changed files with 1 additions and 1 deletions

View File

@ -806,9 +806,9 @@ public class KahaDBStore extends MessageDatabase implements PersistenceAdapter {
break; break;
} }
} }
sd.orderIndex.stoppedIterating();
if (entry != null) { if (entry != null) {
MessageOrderCursor copy = sd.orderIndex.cursor.copy(); MessageOrderCursor copy = sd.orderIndex.cursor.copy();
copy.increment();
sd.subscriptionCursors.put(subscriptionKey, copy); sd.subscriptionCursors.put(subscriptionKey, copy);
} }
} }