INT-1940 changed locks map to have correlationId -> new Object()

This commit is contained in:
Oleg Zhurakousky
2011-06-23 16:13:03 -04:00
parent 9299c36953
commit d5bb9a8297

View File

@@ -247,7 +247,7 @@ public class CorrelatingMessageHandler extends AbstractMessageHandler implements
private Object getLock(Object correlationKey) {
synchronized(correlationLocksMonitor){
locks.putIfAbsent(correlationKey, correlationKey);
locks.putIfAbsent(correlationKey, new Object());
return locks.get(correlationKey);
}
}