mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-17710 "unknown error" with FLUSH LOGS if log directory is not writeable
This commit is contained in:
@ -124,14 +124,7 @@ bool reload_acl_and_cache(THD *thd, unsigned long long options,
|
||||
|
||||
if (options & REFRESH_ERROR_LOG)
|
||||
if (unlikely(flush_error_log()))
|
||||
{
|
||||
/*
|
||||
When flush_error_log() failed, my_error() has not been called.
|
||||
So, we have to do it here to keep the protocol.
|
||||
*/
|
||||
my_error(ER_UNKNOWN_ERROR, MYF(0));
|
||||
result= 1;
|
||||
}
|
||||
|
||||
if ((options & REFRESH_SLOW_LOG) && global_system_variables.sql_log_slow)
|
||||
logger.flush_slow_log();
|
||||
|
Reference in New Issue
Block a user