mirror of https://github.com/apache/activemq.git
Merged /activemq/trunk:r818947-818955
git-svn-id: https://svn.apache.org/repos/asf/activemq/branches/activemq-5.3@818957 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1b6f8e26cf
commit
20f47285a8
|
@ -43,8 +43,8 @@ public class VMPendingMessageCursor extends AbstractPendingMessageCursor {
|
|||
|
||||
|
||||
@Override
|
||||
public List<MessageReference> remove(ConnectionContext context, Destination destination) throws Exception {
|
||||
List<MessageReference> rc = new ArrayList<MessageReference>();
|
||||
public synchronized List<MessageReference> remove(ConnectionContext context, Destination destination) throws Exception {
|
||||
List<MessageReference> rc = new ArrayList<MessageReference>();
|
||||
for (Iterator<MessageReference> iterator = list.iterator(); iterator.hasNext();) {
|
||||
MessageReference r = iterator.next();
|
||||
if( r.getRegionDestination()==destination ) {
|
||||
|
|
Loading…
Reference in New Issue