mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
cleanup: unused method LOGGER::flush_logs
This commit is contained in:
17
sql/log.cc
17
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).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user