fixed bug when node is disabled
This commit is contained in:
parent
d8daf9f063
commit
4662fba06a
|
@ -2489,6 +2489,10 @@ class ConsoleSupervisor
|
||||||
$nodes = $cluster->getNodes();
|
$nodes = $cluster->getNodes();
|
||||||
|
|
||||||
foreach ($nodes as $node) {
|
foreach ($nodes as $node) {
|
||||||
|
if ($node['status'] == HA_DISABLED) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
$cluster_master = $cluster->isClusterMaster($node);
|
$cluster_master = $cluster->isClusterMaster($node);
|
||||||
$db_master = $cluster->isDBMaster($node);
|
$db_master = $cluster->isDBMaster($node);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue