mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
MDEV#5747: wsrep system variables not listed alphabetically
Some wsrep system variables contain uppercase letters in their names, as a result of which they seemed out of order after sorting. Fixed by using case-insensitive string comparison function to perform sorting.
This commit is contained in:
@@ -556,7 +556,11 @@ int mysql_del_sys_var_chain(sys_var *first)
|
||||
|
||||
static int show_cmp(SHOW_VAR *a, SHOW_VAR *b)
|
||||
{
|
||||
#ifdef WITH_WSREP
|
||||
return my_strcasecmp(system_charset_info, a->name, b->name);
|
||||
#else
|
||||
return strcmp(a->name, b->name);
|
||||
#endif /* WITH_WSREP */
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user