diff options
author | Sergei Golubchik <serg@mariadb.org> | 2017-04-06 14:47:55 +0200 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2017-04-07 09:55:54 +0200 |
commit | cd79be82d1d2c17d9f43f993b13412a2172032c4 (patch) | |
tree | 6a02e078b52a3e1820c515d2269975b039d72efd | |
parent | 06ee58a7ddb9d2c2b758042c89727e6cc1605383 (diff) | |
download | mariadb-git-cd79be82d1d2c17d9f43f993b13412a2172032c4.tar.gz |
cleanup: unused method LOGGER::flush_logs
-rw-r--r-- | sql/log.cc | 17 | ||||
-rw-r--r-- | sql/log.h | 1 |
2 files changed, 0 insertions, 18 deletions
diff --git a/sql/log.cc b/sql/log.cc index 64c7698e2a2..a6ece712099 100644 --- a/sql/log.cc +++ b/sql/log.cc @@ -1197,23 +1197,6 @@ void LOGGER::init_log_tables() } -bool LOGGER::flush_logs(THD *thd) -{ - /* - Now we lock logger, as nobody should be able to use logging routines while - log tables are closed - */ - logger.lock_exclusive(); - - /* reopen log files */ - file_log_handler->flush(); - - /* end of log flush */ - logger.unlock(); - return 0; -} - - /** Close and reopen the slow log (with locks). diff --git a/sql/log.h b/sql/log.h index f1a025edfb9..4471f0be26d 100644 --- a/sql/log.h +++ b/sql/log.h @@ -1016,7 +1016,6 @@ public: */ void init_base(); void init_log_tables(); - bool flush_logs(THD *thd); bool flush_slow_log(); bool flush_general_log(); /* Perform basic logger cleanup. this will leave e.g. error log open. */ |