Fix to bug 567(http://bugs.mariadb.com/show_bug.cgi?id=567)
log_manager.cc: if the file exists, is a symbolic link and is not writable, the log manager does not fail but unlinks it and creates a new one.
This commit is contained in:
parent
54b6271c55
commit
194ebcb054
@ -2169,8 +2169,7 @@ static bool logfile_init(
|
||||
if (!writable ||
|
||||
!file_is_symlink(logfile->lf_full_link_name))
|
||||
{
|
||||
nameconflicts = true;
|
||||
goto file_create_fail;
|
||||
unlink(logfile->lf_full_link_name);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user