mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
Post MDEV-11902 Fix test failures in maria and myisam storage engines
my_readline can fail due to missing file. Make my_readline report this condition separately so that we can catch it and report an appropriate error message to the user.
This commit is contained in:
parent
1acfa942ed
commit
606a4a4847
6 changed files with 23 additions and 5 deletions
|
|
@ -104,6 +104,11 @@ MI_INFO *mi_open(const char *name, int mode, uint open_flags)
|
|||
|
||||
realpath_err= my_realpath(name_buff,
|
||||
fn_format(org_name,name,"",MI_NAME_IEXT,4),MYF(0));
|
||||
if (realpath_err > 0) /* File not found, no point in looking further. */
|
||||
{
|
||||
DBUG_RETURN(NULL);
|
||||
}
|
||||
|
||||
if (my_is_symlink(org_name) &&
|
||||
(realpath_err || mysys_test_invalid_symlink(name_buff)))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue