changed message on consolesupervisor

This commit is contained in:
marcos 2020-05-26 10:31:14 +02:00
parent 474129f984
commit 1095781725
1 changed files with 4 additions and 2 deletions

View File

@ -2465,7 +2465,9 @@ class ConsoleSupervisor
] ]
); );
$message = '<pre>One or more nodes have a master role in DB and Cluster'; $message = '<pre>A node in the database cluster is not performing its role correctly:
<br>Role in the cluster: Master
<br>Role in the database: Slave';
$db = db_process_sql( $db = db_process_sql(
'SELECT @@global.read_only', 'SELECT @@global.read_only',
'info', 'info',
@ -2478,7 +2480,7 @@ class ConsoleSupervisor
$dbh $dbh
); );
if ($cluster == 0 && $cluster != false) { if ($cluster == 0 && $db == false) {
$this->notify( $this->notify(
[ [
'type' => 'NOTIF.HAMASTER.MESSAGE', 'type' => 'NOTIF.HAMASTER.MESSAGE',