mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
fixed uninitialized use of variable in mysqltest
fixed race condition in binary log auto-rotation get rid of extention in binary log to avoid non-rotatable logs client/mysqltest.c: fixed uninitialized use of variable bug sql/log.cc: fixed race condition on binary log auto-rotate sql/mysqld.cc: get rid of extention on binary log sql/sql_class.h: argument to new file (inside_mutex)
This commit is contained in:
@ -1498,6 +1498,13 @@ static void open_log(MYSQL_LOG *log, const char *hostname,
|
||||
strmov(strcend(tmp,'.'),extension);
|
||||
opt_name=tmp;
|
||||
}
|
||||
// get rid of extention if the log is binary to avoid problems
|
||||
if (type == LOG_BIN)
|
||||
{
|
||||
char* p = strrchr(opt_name, FN_EXTCHAR);
|
||||
if (p)
|
||||
*p = 0;
|
||||
}
|
||||
log->open(opt_name,type);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user