Commit 35e18c24 authored by Sergei Golubchik's avatar Sergei Golubchik

race condition in the test

this test loads sql_errlog plugin. then in a second connection
it triggers an error, this locks the plugin in that thd.
then the plugin is uninstalled in the default connection.
but that doesn't unload the plugin, as it's still locked. it'll
auto-unload after the foo connection is closed. without an explicit
disconnect it is closed after mysqltest exits and the post-test check
might still see sql_errlog not fully unoaded.
parent b65ffe15
...@@ -108,6 +108,7 @@ global_value_path NULL ...@@ -108,6 +108,7 @@ global_value_path NULL
connection default; connection default;
select global_value_path from information_schema.system_variables where variable_name='plugin_maturity'; select global_value_path from information_schema.system_variables where variable_name='plugin_maturity';
global_value_path var/my.cnf global_value_path var/my.cnf
disconnect foo;
drop user foo@localhost; drop user foo@localhost;
set global low_priority_updates=default; set global low_priority_updates=default;
uninstall soname 'sql_errlog'; uninstall soname 'sql_errlog';
...@@ -34,8 +34,10 @@ select global_value_path from information_schema.system_variables where variable ...@@ -34,8 +34,10 @@ select global_value_path from information_schema.system_variables where variable
connection default; connection default;
replace_regex /\/.*\//var\//; replace_regex /\/.*\//var\//;
select global_value_path from information_schema.system_variables where variable_name='plugin_maturity'; select global_value_path from information_schema.system_variables where variable_name='plugin_maturity';
disconnect foo;
drop user foo@localhost; drop user foo@localhost;
set global low_priority_updates=default; set global low_priority_updates=default;
disable_warnings; disable_warnings;
uninstall soname 'sql_errlog'; uninstall soname 'sql_errlog';
let $count_sessions= 1;
source include/wait_until_count_sessions.inc;
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