mirror of https://github.com/apache/activemq.git
Fixing regression in last commit.
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@1482794 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e06685fe81
commit
0deda2501d
|
@ -797,15 +797,24 @@ public class Queue extends BaseDestination implements Task, UsageListener {
|
||||||
}
|
}
|
||||||
// do the ordered work
|
// do the ordered work
|
||||||
if (!orderedWork.isEmpty()) {
|
if (!orderedWork.isEmpty()) {
|
||||||
|
|
||||||
|
ArrayList<SendSync> syncs = new ArrayList<SendSync>(orderedWork.size());;
|
||||||
sendLock.lockInterruptibly();
|
sendLock.lockInterruptibly();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
for (Transaction tx : orderedWork) {
|
for (Transaction tx : orderedWork) {
|
||||||
sendSyncs.get(tx).processSend();
|
SendSync sync = sendSyncs.get(tx);
|
||||||
|
sync.processSend();
|
||||||
|
syncs.add(sync);
|
||||||
sendSyncs.remove(tx);
|
sendSyncs.remove(tx);
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
sendLock.unlock();
|
sendLock.unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (SendSync sync : syncs) {
|
||||||
|
sync.processSent();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue