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:
tcharles 2024-10-29 08:57:31 +01:00 committed by GitHub
parent 9bac8e5d0c
commit 938557e2fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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})) {