mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-28720 add log message if flush log failure
This commit is contained in:
@ -6874,7 +6874,12 @@ int main(int argc, char **argv)
|
|||||||
if (flush_logs || opt_delete_master_logs)
|
if (flush_logs || opt_delete_master_logs)
|
||||||
{
|
{
|
||||||
if (mysql_refresh(mysql, REFRESH_LOG))
|
if (mysql_refresh(mysql, REFRESH_LOG))
|
||||||
|
{
|
||||||
|
fprintf(stderr,
|
||||||
|
"Flush logs or delete master logs failure in server \n");
|
||||||
|
first_error= EX_MYSQLERR;
|
||||||
goto err;
|
goto err;
|
||||||
|
}
|
||||||
verbose_msg("-- main : logs flushed successfully!\n");
|
verbose_msg("-- main : logs flushed successfully!\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user