changed message on consolesupervisor
This commit is contained in:
parent
474129f984
commit
1095781725
|
@ -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',
|
||||||
|
|
Loading…
Reference in New Issue