Fixed bug in main.connect test where Connection_errors showed wrong value
This commit is contained in:
parent
a8010e7689
commit
ee908140ac
@ -457,11 +457,13 @@ Connection_errors_max_connections 0
|
|||||||
Connection_errors_peer_address 0
|
Connection_errors_peer_address 0
|
||||||
Connection_errors_select 0
|
Connection_errors_select 0
|
||||||
Connection_errors_tcpwrap 0
|
Connection_errors_tcpwrap 0
|
||||||
|
show global status like 'Threads_connected';
|
||||||
|
Variable_name Value
|
||||||
|
Threads_connected 1
|
||||||
set @max_con.save= @@max_connections;
|
set @max_con.save= @@max_connections;
|
||||||
set global max_connections= 10;
|
set global max_connections= 10;
|
||||||
# ERROR 1040
|
# ERROR 1040
|
||||||
# ERROR 1040
|
# ERROR 1040
|
||||||
connection default;
|
|
||||||
show global status like 'Connection_errors%';
|
show global status like 'Connection_errors%';
|
||||||
Variable_name Value
|
Variable_name Value
|
||||||
Connection_errors_accept 0
|
Connection_errors_accept 0
|
||||||
|
@ -517,6 +517,7 @@ SET GLOBAL connect_timeout= @save_connect_timeout;
|
|||||||
flush status;
|
flush status;
|
||||||
|
|
||||||
show global status like 'Connection_errors%';
|
show global status like 'Connection_errors%';
|
||||||
|
show global status like 'Threads_connected';
|
||||||
|
|
||||||
set @max_con.save= @@max_connections;
|
set @max_con.save= @@max_connections;
|
||||||
set global max_connections= 10;
|
set global max_connections= 10;
|
||||||
@ -534,9 +535,25 @@ while ($n)
|
|||||||
--dec $n
|
--dec $n
|
||||||
}
|
}
|
||||||
|
|
||||||
|
connection default;
|
||||||
|
let $n= 10;
|
||||||
|
let $c= 12;
|
||||||
|
while ($n)
|
||||||
|
{
|
||||||
|
disconnect con$c;
|
||||||
|
--dec $n
|
||||||
|
--dec $c
|
||||||
|
}
|
||||||
|
|
||||||
|
# Wait until all connections has terminated to ensure
|
||||||
|
# that Connection_errors is correct
|
||||||
|
|
||||||
|
let $status_var=Threads_connected;
|
||||||
|
let $status_var_value= 1;
|
||||||
|
--source include/wait_for_status_var.inc
|
||||||
|
|
||||||
--enable_result_log
|
--enable_result_log
|
||||||
--enable_query_log
|
--enable_query_log
|
||||||
--connection default
|
|
||||||
show global status like 'Connection_errors%';
|
show global status like 'Connection_errors%';
|
||||||
set global max_connections= @max_con.save;
|
set global max_connections= @max_con.save;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user