activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dej...@apache.org
Subject svn commit: r982511 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBStore.java
Date Thu, 05 Aug 2010 09:04:14 GMT
Author: dejanb
Date: Thu Aug  5 09:04:14 2010
New Revision: 982511

URL: http://svn.apache.org/viewvc?rev=982511&view=rev
Log:
fix for JmsDurableTopicSlowReceiveTest - we must update cursor after iterating

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBStore.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBStore.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBStore.java?rev=982511&r1=982510&r2=982511&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBStore.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/kahadb/KahaDBStore.java
Thu Aug  5 09:04:14 2010
@@ -806,9 +806,9 @@ public class KahaDBStore extends Message
                                 break;
                             }
                         }
+                        sd.orderIndex.stoppedIterating();
                         if (entry != null) {
                             MessageOrderCursor copy = sd.orderIndex.cursor.copy();
-                            copy.increment();
                             sd.subscriptionCursors.put(subscriptionKey, copy);
                         }
                     }



Mime
View raw message