Commit 8b94aec1 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

Fix connect2 test, simulated errors do not work with thread cache

parent 6345cd44
call mtr.add_suppression("Allocation failed"); call mtr.add_suppression("Allocation failed");
SET @old_debug= @@session.debug; SET @old_debug= @@session.debug;
set @old_thread_cache_size=@@global.thread_cache_size; set @old_thread_cache_size=@@global.thread_cache_size;
set @@global.thread_cache_size=0;
connect con1,localhost,root,,test,,; connect con1,localhost,root,,test,,;
select 1; select 1;
1 1
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
call mtr.add_suppression("Allocation failed"); call mtr.add_suppression("Allocation failed");
SET @old_debug= @@session.debug; SET @old_debug= @@session.debug;
set @old_thread_cache_size=@@global.thread_cache_size; set @old_thread_cache_size=@@global.thread_cache_size;
set @@global.thread_cache_size=0;
# Test connections to the # Test connections to the
connect(con1,localhost,root,,test,,); connect(con1,localhost,root,,test,,);
...@@ -32,7 +32,6 @@ select 1; ...@@ -32,7 +32,6 @@ select 1;
disconnect con1; disconnect con1;
# Test connections to the extra port. # Test connections to the extra port.
connect(con1,localhost,root,,test,$MASTER_EXTRA_PORT,); connect(con1,localhost,root,,test,$MASTER_EXTRA_PORT,);
select 1; select 1;
disconnect con1; disconnect con1;
......
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