mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Re-enable IO cache mode that allows slow and query logs to go to a FIFO
(lost in merge because the code to open these logs was moved to a different file). sql/sql_class.h: Use APPEND_CACHE for query log and slow log (so they can be FIFO)
This commit is contained in:
@ -293,13 +293,13 @@ public:
|
||||
{
|
||||
char buf[FN_REFLEN];
|
||||
return open(generate_name(log_name, ".log", 0, buf),
|
||||
LOG_NORMAL, 0, WRITE_CACHE, 0, 0, 0);
|
||||
LOG_NORMAL, 0, APPEND_CACHE, 0, 0, 0);
|
||||
}
|
||||
bool open_slow_log(const char *log_name)
|
||||
{
|
||||
char buf[FN_REFLEN];
|
||||
return open(generate_name(log_name, "-slow.log", 0, buf),
|
||||
LOG_NORMAL, 0, WRITE_CACHE, 0, 0, 0);
|
||||
LOG_NORMAL, 0, APPEND_CACHE, 0, 0, 0);
|
||||
}
|
||||
bool open_index_file(const char *index_file_name_arg,
|
||||
const char *log_name);
|
||||
|
Reference in New Issue
Block a user