2012-07-31 18:32:46 +02:00
|
|
|
#
|
|
|
|
# MDEV-375 Server crashes in THD::print_aborted_warning with log_warnings > 3
|
|
|
|
#
|
2012-09-02 19:09:17 +02:00
|
|
|
--source include/not_embedded.inc
|
|
|
|
|
2022-06-09 05:32:51 +02:00
|
|
|
--disable_service_connection
|
2019-08-30 15:06:54 +02:00
|
|
|
set @save_log_warnings=@@log_warnings, @save_max_connections=@@max_connections;
|
2012-07-31 18:32:46 +02:00
|
|
|
SET GLOBAL log_warnings=4;
|
2018-03-22 19:03:54 +01:00
|
|
|
SET GLOBAL max_connections=10;
|
|
|
|
|
|
|
|
--connect (tmp_con1,localhost,root,,)
|
|
|
|
--connect (tmp_con2,localhost,root,,)
|
|
|
|
--connect (tmp_con3,localhost,root,,)
|
|
|
|
--connect (tmp_con4,localhost,root,,)
|
|
|
|
--connect (tmp_con5,localhost,root,,)
|
|
|
|
--connect (tmp_con6,localhost,root,,)
|
|
|
|
--connect (tmp_con7,localhost,root,,)
|
|
|
|
--connect (tmp_con8,localhost,root,,)
|
2012-07-31 18:32:46 +02:00
|
|
|
|
|
|
|
--connect (con1,localhost,root,,)
|
|
|
|
SELECT 1;
|
|
|
|
--connect (con2,localhost,root,,)
|
|
|
|
SELECT 2;
|
|
|
|
--disable_query_log
|
|
|
|
--error ER_CON_COUNT_ERROR
|
|
|
|
--connect (con3,localhost,root,,)
|
|
|
|
--enable_query_log
|
|
|
|
|
|
|
|
--connection default
|
|
|
|
SELECT 0;
|
2020-03-02 16:35:57 +01:00
|
|
|
let $count_sessions=11;
|
|
|
|
--source include/wait_until_count_sessions.inc
|
2016-02-01 11:45:39 +01:00
|
|
|
show status like "Threads_connected";
|
2012-07-31 18:32:46 +02:00
|
|
|
|
2019-08-30 15:06:54 +02:00
|
|
|
SET GLOBAL log_warnings=@save_log_warnings;
|
|
|
|
SET GLOBAL max_connections=@save_max_connections;
|
2022-06-09 05:32:51 +02:00
|
|
|
--enable_service_connection
|