summaryrefslogtreecommitdiff
path: root/sql/sql_reload.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2019-05-04 23:32:45 +0200
committerSergei Golubchik <serg@mariadb.org>2019-05-07 18:40:36 +0200
commit88961a28e2694db18acb6d355089e52ac2b9a769 (patch)
tree237eba3cc014ce043d69340dd735a90193a70467 /sql/sql_reload.cc
parent15c79c41e435758392a1474fccf45978fec1e45c (diff)
downloadmariadb-git-88961a28e2694db18acb6d355089e52ac2b9a769.tar.gz
MDEV-17710 "unknown error" with FLUSH LOGS if log directory is not writeable
Diffstat (limited to 'sql/sql_reload.cc')
-rw-r--r--sql/sql_reload.cc7
1 files changed, 0 insertions, 7 deletions
diff --git a/sql/sql_reload.cc b/sql/sql_reload.cc
index abdf9d76d15..bb8b5e94173 100644
--- a/sql/sql_reload.cc
+++ b/sql/sql_reload.cc
@@ -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();