ARTEMIS-385 small fix
This commit is contained in:
parent
de4e2cfe3a
commit
f0b8f1e356
|
@ -1337,15 +1337,20 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
|
||||||
Pair<TransportConfiguration, TransportConfiguration> connectorPair,
|
Pair<TransportConfiguration, TransportConfiguration> connectorPair,
|
||||||
boolean isLast) {
|
boolean isLast) {
|
||||||
|
|
||||||
if (isLast) {
|
try {
|
||||||
latchFinalTopology.countDown();
|
// if it is our connector then set the live id used for failover
|
||||||
|
if (connectorPair.getA() != null && TransportConfigurationUtil.isSameHost(connectorPair.getA(), connectorConfig)) {
|
||||||
|
liveNodeID = nodeID;
|
||||||
|
}
|
||||||
|
|
||||||
|
serverLocator.notifyNodeUp(uniqueEventID, nodeID, backupGroupName, scaleDownGroupName, connectorPair, isLast);
|
||||||
|
}
|
||||||
|
finally {
|
||||||
|
if (isLast) {
|
||||||
|
latchFinalTopology.countDown();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// if it is our connector then set the live id used for failover
|
|
||||||
if (connectorPair.getA() != null && TransportConfigurationUtil.isSameHost(connectorPair.getA(), connectorConfig)) {
|
|
||||||
liveNodeID = nodeID;
|
|
||||||
}
|
|
||||||
serverLocator.notifyNodeUp(uniqueEventID, nodeID, backupGroupName, scaleDownGroupName, connectorPair, isLast);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue