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:
Vicențiu Ciorbaru 2017-03-03 20:12:48 +02:00
commit 606a4a4847
6 changed files with 23 additions and 5 deletions

View file

@ -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)))
{