mivanac commented on code in PR #7323:
URL: https://github.com/apache/geode/pull/7323#discussion_r849361679


##########
geode-core/src/main/java/org/apache/geode/internal/cache/wan/AbstractGatewaySender.java:
##########
@@ -1298,6 +1301,26 @@ public boolean removeFromTempQueueEvents(Object tailKey) 
{
     }
   }
 
+  public boolean markAsDuplicateInTempQueueEvents(Object tailKey) {
+    synchronized (queuedEventsSync) {
+      Iterator<TmpQueueEvent> itr = tmpQueuedEvents.iterator();
+      while (itr.hasNext()) {

Review Comment:
   We are searching for first occurrence of this tailKey in loop.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@geode.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to