summaryrefslogtreecommitdiff
path: root/mysql-test/suite/large_tests/t/lock_tables_big.test
blob: 41dcff3577ccedd2ac4c3674f7c0cb2227475945 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#
# Bug#24509 cannot use more than 2048 file descriptors on windows
#
--disable_query_log
create database many_tables;
use many_tables;
let $max_tables=3000;
let $i=$max_tables;

--disable_warnings
create table t (i int);
let $table_list=t READ; 

while ($i)
{
 eval create table t$i (i int);
 let $table_list= $table_list ,t$i READ;
 dec $i;
}

#lock all tables we just created (resembles mysqldump startup is doing with --all-databases operation)
#There will be 3 descriptors for each table (table.FRM, table.MYI and table.MYD files) means 9000 files
#descriptors altogether. For Microsoft C runtime, this is way too many.

eval LOCK TABLES $table_list;
unlock tables;

drop database many_tables;
--disable_query_log
--echo all done