Commit c0be4995 authored by unknown's avatar unknown

Merge aelkin@bk-internal.mysql.com:/home/bk/mysql-5.0-rpl

into  koti.dsl.inet.fi:/home/elkin/MySQL/TEAM/FIXES/5.0/bug28597-log_name_upgrade

parents c45171b0 b7cdb978
...@@ -106,9 +106,3 @@ connection slave; ...@@ -106,9 +106,3 @@ connection slave;
sync_with_master; sync_with_master;
# End of 4.1 tests # End of 4.1 tests
# Cleanup
# The A->B->A replication causes the master to start writing relay logs
# in var/run, remove them
remove_file $MYSQLTEST_VARDIR/run/master-relay-bin.000001;
remove_file $MYSQLTEST_VARDIR/run/master-relay-bin.index;
...@@ -211,6 +211,8 @@ select * from t1; ...@@ -211,6 +211,8 @@ select * from t1;
connection master; connection master;
drop table t1; drop table t1;
--remove_file $MYSQLTEST_VARDIR/tmp/bug14157.sql
# Delete the anonymous users # Delete the anonymous users
source include/delete_anonymous_users.inc; source include/delete_anonymous_users.inc;
......
...@@ -448,13 +448,10 @@ const char *MYSQL_LOG::generate_name(const char *log_name, ...@@ -448,13 +448,10 @@ const char *MYSQL_LOG::generate_name(const char *log_name,
{ {
if (!log_name || !log_name[0]) if (!log_name || !log_name[0])
{ {
/* strmake(buff, pidfile_name, FN_REFLEN - strlen(suffix) - 1);
TODO: The following should be using fn_format(); We just need to return (const char *)
first change fn_format() to cut the file name if it's too long. fn_format(buff, buff, "", suffix, MYF(MY_REPLACE_EXT|MY_REPLACE_DIR));
*/
strmake(buff, pidfile_name,FN_REFLEN-5);
strmov(fn_ext(buff),suffix);
return (const char *)buff;
} }
// get rid of extension if the log is binary to avoid problems // get rid of extension if the log is binary to avoid problems
if (strip_ext) if (strip_ext)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment