From 5cab4a77e13761c4fddbb06afff9df583a2081b9 Mon Sep 17 00:00:00 2001 From: "tnurnberg@sin.intern.azundris.com" <> Date: Thu, 6 Dec 2007 18:03:30 +0100 Subject: [PATCH] Bug#31177: Server variables can't be set to their current values initialise limits properly for getopt_ll_limit() (fixes falcon_opt test) --- sql/sql_plugin.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sql/sql_plugin.cc b/sql/sql_plugin.cc index 002fb5be31e..d306ded7f4f 100644 --- a/sql/sql_plugin.cc +++ b/sql/sql_plugin.cc @@ -2725,6 +2725,8 @@ bool sys_var_pluginvar::update(THD *thd, set_var *var) static void plugin_opt_set_limits(struct my_option *options, const struct st_mysql_sys_var *opt) { + options->sub_size= 0; + switch (opt->flags & (PLUGIN_VAR_TYPEMASK | PLUGIN_VAR_UNSIGNED | PLUGIN_VAR_THDLOCAL)) { /* global system variables */