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:
@ -2169,8 +2169,7 @@ static bool logfile_init(
|
|||||||
if (!writable ||
|
if (!writable ||
|
||||||
!file_is_symlink(logfile->lf_full_link_name))
|
!file_is_symlink(logfile->lf_full_link_name))
|
||||||
{
|
{
|
||||||
nameconflicts = true;
|
unlink(logfile->lf_full_link_name);
|
||||||
goto file_create_fail;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user