mirror of https://github.com/apache/activemq.git
resolve AMQ-2121, shared lock needs to be less contentious
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@744975 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b4aa979d90
commit
9f8777d3a0
|
@ -533,7 +533,7 @@ public abstract class DemandForwardingBridgeSupport implements NetworkBridge, Br
|
|||
|
||||
// in a cyclic network there can be multiple bridges per broker that can propagate
|
||||
// a network subscription so there is a need to synchronise on a shared entity
|
||||
synchronized(brokerService) {
|
||||
synchronized(brokerService.getVmConnectorURI()) {
|
||||
if (isDuplicateNetworkSubscription(info)) {
|
||||
if (LOG.isDebugEnabled()) {
|
||||
LOG.debug(configuration.getBrokerName() + " Ignoring sub from " + remoteBrokerName + ", destination " + info.getDestination()
|
||||
|
|
Loading…
Reference in New Issue