mirror of https://github.com/apache/activemq.git
remove println messages from remove()
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@488783 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
419ed2ee91
commit
f6972ec84a
|
@ -95,17 +95,12 @@ public class VMPendingMessageCursor extends AbstractPendingMessageCursor{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void remove(MessageReference node){
|
public void remove(MessageReference node){
|
||||||
boolean matched = false;
|
|
||||||
int size = list.size();
|
|
||||||
for(Iterator i=list.iterator();i.hasNext();){
|
for(Iterator i=list.iterator();i.hasNext();){
|
||||||
MessageReference ref=(MessageReference)i.next();
|
MessageReference ref=(MessageReference)i.next();
|
||||||
System.err.println("MATCHIG " + node.getMessageId() + " AGAINST " + ref.getMessageId());
|
|
||||||
if(node.getMessageId().equals(ref.getMessageId())){
|
if(node.getMessageId().equals(ref.getMessageId())){
|
||||||
i.remove();
|
i.remove();
|
||||||
matched = true;
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
System.err.println("REMOVED " + node.getMessageId() + " = " + matched + " presize = " + size + " size now = " + list.size());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue