Commit 9a0b80c9 authored by Nirbhay Choubey's avatar Nirbhay Choubey

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.
parent b9a4569b
......@@ -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 */
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment