[MDEV-7530] !includedir reads files in random order Created: 2015-01-29 Updated: 2015-02-25 Resolved: 2015-02-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.0 |
| Fix Version/s: | 10.0.17 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Sergei Golubchik | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | 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 |
| Comments |
| Comment by Alexey Botchkov [ 2015-02-16 ] | |||||||||||||||||||||||||||||||||||||||||||
|
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:
| |||||||||||||||||||||||||||||||||||||||||||
| Comment by Sergei Golubchik [ 2015-02-16 ] | |||||||||||||||||||||||||||||||||||||||||||
|
Affect Version is "10.0", this task isn't for 5.5 | |||||||||||||||||||||||||||||||||||||||||||
| Comment by Will Fong [ 2015-02-17 ] | |||||||||||||||||||||||||||||||||||||||||||
|
I'm sorry, I don't understand C, but here was my test:
|