MDEV-7530 !includedir reads files in random order

This commit is contained in:
Sergei Golubchik 2015-02-25 09:43:31 +01:00
parent 6c09a72af5
commit cbf8cdc252

View File

@ -843,7 +843,7 @@ static int search_default_file_with_ext(Process_option_func opt_handler,
ptr, name, line)))
goto err;
if (!(search_dir= my_dir(ptr, MYF(MY_WME))))
if (!(search_dir= my_dir(ptr, MYF(MY_WME | MY_WANT_SORT))))
goto err;
for (i= 0; i < (uint) search_dir->number_of_files; i++)