fixed bug when node is disabled

This commit is contained in:
alejandro-campos 2020-09-24 13:05:17 +02:00
parent d8daf9f063
commit 4662fba06a
1 changed files with 4 additions and 0 deletions

View File

@ -2489,6 +2489,10 @@ class ConsoleSupervisor
$nodes = $cluster->getNodes();
foreach ($nodes as $node) {
if ($node['status'] == HA_DISABLED) {
continue;
}
$cluster_master = $cluster->isClusterMaster($node);
$db_master = $cluster->isDBMaster($node);