fix(mysql/mariadb): use the appropriate last error message (#5244)
Use the proper mariadb message when checking mysql replication state Refs: CTOR-1004
This commit is contained in:
parent
9bac8e5d0c
commit
938557e2fd
src/database/mysql/mode
|
@ -222,7 +222,7 @@ sub check_slave {
|
|||
$self->{servers}->{ $options{name} }->{thread_io} = {
|
||||
display => $options{name},
|
||||
running => $running,
|
||||
error_message => defined($result->{Last_Error}) ? $result->{Last_Error} : ''
|
||||
error_message => defined($result->{Last_IO_Error}) ? $result->{Last_IO_Error} : ''
|
||||
};
|
||||
}
|
||||
if (defined($result->{Slave_SQL_Running})) {
|
||||
|
|
Loading…
Reference in New Issue