mirror of
https://github.com/MariaDB/server.git
synced 2025-08-29 00:08:14 +03:00
Bug#54782 Performance schema per thread accounting and thread cache
Backport from mysql-next-mr (5.6) to mysql-trunk (5.5)
This commit is contained in:
34
mysql-test/suite/perfschema/r/thread_cache.result
Normal file
34
mysql-test/suite/perfschema/r/thread_cache.result
Normal file
@@ -0,0 +1,34 @@
|
||||
SET @saved_thread_cache_size = @@global.thread_cache_size;
|
||||
set global thread_cache_size = 0;
|
||||
show variables like "thread_cache_size";
|
||||
Variable_name Value
|
||||
thread_cache_size 0
|
||||
select @id_increment;
|
||||
@id_increment
|
||||
1
|
||||
select @thread_id_increment;
|
||||
@thread_id_increment
|
||||
1
|
||||
select @id_increment;
|
||||
@id_increment
|
||||
1
|
||||
select @thread_id_increment;
|
||||
@thread_id_increment
|
||||
1
|
||||
set global thread_cache_size = 100;
|
||||
show variables like "thread_cache_size";
|
||||
Variable_name Value
|
||||
thread_cache_size 100
|
||||
select @id_increment;
|
||||
@id_increment
|
||||
1
|
||||
select @thread_id_increment;
|
||||
@thread_id_increment
|
||||
1
|
||||
select @id_increment;
|
||||
@id_increment
|
||||
1
|
||||
select @thread_id_increment;
|
||||
@thread_id_increment
|
||||
1
|
||||
set global thread_cache_size = @saved_thread_cache_size;
|
Reference in New Issue
Block a user