mirror of
https://github.com/MariaDB/server.git
synced 2025-01-17 20:42:30 +01:00
Bug#29993 (Default value of log_output should be 'FILE', not 'TABLE')
Changed the default location of the log output to LOG_FILE, for backward compatibility with MySQL 5.0 mysql-test/r/log_state.result: Changed the default location of the log output to LOG_FILE, for backward compatibility with MySQL 5.0 sql/set_var.cc: Changed the default location of the log output to LOG_FILE, for backward compatibility with MySQL 5.0
This commit is contained in:
parent
b0fcdce317
commit
20b9d9bb2f
2 changed files with 4 additions and 4 deletions
|
@ -131,7 +131,7 @@ set global general_log=ON;
|
|||
set global log_output=default;
|
||||
show variables like 'log_output';
|
||||
Variable_name Value
|
||||
log_output TABLE
|
||||
log_output FILE
|
||||
set global general_log=OFF;
|
||||
set global log_output=FILE;
|
||||
truncate table mysql.general_log;
|
||||
|
|
|
@ -2220,9 +2220,9 @@ void sys_var_log_output::set_default(THD *thd, enum_var_type type)
|
|||
{
|
||||
pthread_mutex_lock(&LOCK_global_system_variables);
|
||||
logger.lock();
|
||||
logger.init_slow_log(LOG_TABLE);
|
||||
logger.init_general_log(LOG_TABLE);
|
||||
*value= LOG_TABLE;
|
||||
logger.init_slow_log(LOG_FILE);
|
||||
logger.init_general_log(LOG_FILE);
|
||||
*value= LOG_FILE;
|
||||
logger.unlock();
|
||||
pthread_mutex_unlock(&LOCK_global_system_variables);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue