Commit 05dfca24 authored by unknown's avatar unknown
Browse files

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)
parent 14f4eebd
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -293,13 +293,13 @@ class MYSQL_LOG: public TC_LOG
  {
    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);