Commit 595cf636 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-7475 Wrong implementation of checking PLUGIN_VAR_SET condition

correct the check for PLUGIN_VAR_STR
parent 5d0d6cb1
...@@ -3916,7 +3916,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp, ...@@ -3916,7 +3916,7 @@ static int test_plugin_options(MEM_ROOT *tmp_root, struct st_plugin_int *tmp,
we copy string values to a plugin's memroot. we copy string values to a plugin's memroot.
*/ */
if (mysqld_server_started && if (mysqld_server_started &&
((o->flags & (PLUGIN_VAR_STR | PLUGIN_VAR_NOCMDOPT | ((o->flags & (PLUGIN_VAR_TYPEMASK | PLUGIN_VAR_NOCMDOPT |
PLUGIN_VAR_MEMALLOC)) == PLUGIN_VAR_STR)) PLUGIN_VAR_MEMALLOC)) == PLUGIN_VAR_STR))
{ {
sysvar_str_t* str= (sysvar_str_t *)o; sysvar_str_t* str= (sysvar_str_t *)o;
......
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