| 334 | |
| 335 | |
| 336 | bool LOGGER::flush_logs(THD *thd) |
| 337 | { |
| 338 | int rc= 0; |
| 339 | |
| 340 | /* |
| 341 | Now we lock logger, as nobody should be able to use logging routines while |
| 342 | log tables are closed |
| 343 | */ |
| 344 | logger.lock_exclusive(); |
| 345 | |
| 346 | /* reopen log files */ |
| 347 | file_log_handler->flush(); |
| 348 | |
| 349 | /* end of log flush */ |
| 350 | logger.unlock(); |
| 351 | return rc; |
| 352 | } |
| 353 | |
| 354 | /** |
| 355 | Close and reopen the general log (with locks). |
nothing calls this directly
no test coverage detected