Commit 28b90bfa authored by serg@janus.mylan's avatar serg@janus.mylan

bugfix

parent 62b5c384
...@@ -967,7 +967,6 @@ my_bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func, ...@@ -967,7 +967,6 @@ my_bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func,
for (idx= 0; idx < total; idx++) for (idx= 0; idx < total; idx++)
{ {
plugin= plugins[idx];
if (unlikely(version != plugin_array_version)) if (unlikely(version != plugin_array_version))
{ {
rw_rdlock(&THR_LOCK_plugin); rw_rdlock(&THR_LOCK_plugin);
...@@ -976,6 +975,7 @@ my_bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func, ...@@ -976,6 +975,7 @@ my_bool plugin_foreach_with_mask(THD *thd, plugin_foreach_func *func,
plugins[i]=0; plugins[i]=0;
rw_unlock(&THR_LOCK_plugin); rw_unlock(&THR_LOCK_plugin);
} }
plugin= plugins[idx];
if (plugin && func(thd, plugin, arg)) if (plugin && func(thd, plugin, arg))
goto err; goto err;
} }
......
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