From 352c273dfcb962ab4a99342447e7bcbc5fcdfe0c Mon Sep 17 00:00:00 2001 From: "istruewing@chilla.local" <> Date: Fri, 27 Apr 2007 23:42:22 +0200 Subject: [PATCH] WL#2936 - Falcon & MySQL plugin interface: server variables Changed back (type != OPT_SESSION) to (type == OPT_GLOBAL) --- sql/sql_plugin.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index 6bb2d998720..24ccb9e0a3b 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -2474,10 +2474,10 @@ SHOW_TYPE sys_var_pluginvar::show_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 (type != OPT_SESSION) + if (type == OPT_GLOBAL) thd= NULL; return intern_sys_var_ptr(thd, *(int*) (plugin_var+1), false);