1
0
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:
Nirbhay Choubey
2014-06-23 19:14:28 -04:00
parent b9a4569bb4
commit 9a0b80c968

View File

@@ -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 */
}