1set @old_concurrent_insert= @@global.concurrent_insert;
2set @@global.concurrent_insert= 0;
3SET @old_log_output = @@global.log_output;
4SET GLOBAL LOG_OUTPUT = 'FILE';
5flush status;
6DROP VIEW IF EXISTS v1;
7CREATE VIEW v1 AS SELECT VARIABLE_NAME AS NAME, CONVERT(VARIABLE_VALUE, UNSIGNED) AS VALUE FROM INFORMATION_SCHEMA.GLOBAL_STATUS;
8SELECT VALUE INTO @tc FROM v1 WHERE NAME = 'Threads_connected';
9SELECT NAME FROM v1 WHERE NAME = 'Threads_created' AND VALUE < @tc;
10NAME
11DROP VIEW v1;
12set @@global.concurrent_insert= @old_concurrent_insert;
13SET GLOBAL log_output = @old_log_output;
14