diff options
author | unknown <msvensson@pilot.blaudden> | 2007-03-20 11:21:27 +0100 |
---|---|---|
committer | unknown <msvensson@pilot.blaudden> | 2007-03-20 11:21:27 +0100 |
commit | a552a26940fa30ac808b2548c7629662b2464222 (patch) | |
tree | af6e7bbca6cab88c7334a1fd59d8c11f3463827f /mysql-test/t/log_state.test | |
parent | 5d51b2d58071127827f69ff1d830cc4ee01c9295 (diff) | |
download | mariadb-git-a552a26940fa30ac808b2548c7629662b2464222.tar.gz |
Bug#27070 server logs are created unrequested and in wrong directory
- Avoid defaault log file names looking like <hostname>.pid.slow.log
by using the FN_REPLACE_EXT flag to 'fn_format'
- Remove the default log files generated by log_state.test before
test completes
mysql-test/t/log_state.test:
Tess sets location of log files to default location ie. they will be
created in var/run form which the mysqld was started. Remove the
files when test are completed
sql/log.cc:
Replace the extension formatting the default log file name
from "pidfile_name" which already contains an extension
Diffstat (limited to 'mysql-test/t/log_state.test')
-rw-r--r-- | mysql-test/t/log_state.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/mysql-test/t/log_state.test b/mysql-test/t/log_state.test index a5e00cb0387..e772089ce7a 100644 --- a/mysql-test/t/log_state.test +++ b/mysql-test/t/log_state.test @@ -132,3 +132,8 @@ select * from mysql.general_log; # Cleanup (must be done last to avoid delayed 'Quit' message in general log) # disconnect con1; + +# Remove the log files that was created in the "default location" +# i.e var/run +--remove_file $MYSQLTEST_VARDIR/run/master.log +--remove_file $MYSQLTEST_VARDIR/run/master-slow.log |