WL#2936 - Falcon & MySQL plugin interface: server variables

Changed back (type != OPT_SESSION) to (type == OPT_GLOBAL)
This commit is contained in:
istruewing@chilla.local 2007-04-27 23:42:22 +02:00
parent 31c1a1c9c3
commit 352c273dfc

View File

@ -2474,10 +2474,10 @@ SHOW_TYPE sys_var_pluginvar::show_type()
byte* sys_var_pluginvar::real_value_ptr(THD *thd, enum_var_type type) byte* sys_var_pluginvar::real_value_ptr(THD *thd, enum_var_type type)
{ {
DBUG_ASSERT(thd || (type != OPT_SESSION)); DBUG_ASSERT(thd || (type == OPT_GLOBAL));
if (plugin_var->flags & PLUGIN_VAR_THDLOCAL) if (plugin_var->flags & PLUGIN_VAR_THDLOCAL)
{ {
if (type != OPT_SESSION) if (type == OPT_GLOBAL)
thd= NULL; thd= NULL;
return intern_sys_var_ptr(thd, *(int*) (plugin_var+1), false); return intern_sys_var_ptr(thd, *(int*) (plugin_var+1), false);