From 7695676339af398d2b3f46b9f518d70903b1a027 Mon Sep 17 00:00:00 2001 From: "Hiram R. Chirino" Date: Sat, 30 Dec 2006 23:49:03 +0000 Subject: [PATCH] Fix for CursorDurableTest. The TopicStorePrefetch was iterating items that were in the subscription but not added to the pending list. git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@491346 13f79535-47bb-0310-9956-ffa450edef68 --- .../broker/region/PrefetchSubscription.java | 4 +- .../region/cursors/TopicStorePrefetch.java | 70 +++++++++++++------ 2 files changed, 51 insertions(+), 23 deletions(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java b/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java index b8a05ba768..bc521d2a1f 100755 --- a/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java +++ b/activemq-core/src/main/java/org/apache/activemq/broker/region/PrefetchSubscription.java @@ -406,7 +406,9 @@ abstract public class PrefetchSubscription extends AbstractSubscription{ pending.reset(); while(pending.hasNext()&&!isFull()&&count