Details
-
Bug
-
Status: Closed (View Workflow)
-
Critical
-
Resolution: Fixed
-
10.0(EOL)
-
None
Description
Currently !includedir directive in my.cnf seems to include files in some unspecified order. This makes it impossible to override settings in one specific include file by adding another file that is included later.
The server should include files in alphabetical order, so that one could use config files with conventional two-digit prefixes.
the fix is to add MY_WANT_SORT to my_dir() in my_default.c
I cannot reproduce this one. Mean that '*cfg' files in an !includedir-ed directory are sorted for me.
And the sorting code is there in the my_dir() like:
if (!(MyFlags & MY_DONT_SORT))
my_qsort((void *) result->dir_entry, result->number_off_files,
sizeof(FILEINFO), (qsort_cmp) comp_names);