Debian Codegraph @

mysql-test/suite/innodb/t/innodb_buffer_pool_chunk_size_rounding.test

raw
1 --echo #
2 --echo # Bug #29951982 ASSERTION FAILURE:
3 --echo # SYNC0RW.CC.*LOCK->LOCK_WORD == X_LOCK_DECR
4 --echo #
5
6 --source include/big_test.inc
7
8 # In this case 2G is not only not divisible by 31, but more importantly the result of division is not
9 # divisible by page size, which in buggy implementation caused innodb_buffer_pool_chunk_size to be
10 # not divisible by page size.
11 let $restart_parameters = restart: --innodb-buffer-pool-instances=31 --innodb-buffer-pool-size=2G --innodb-buffer-pool-chunk-size=128M;
12 --source include/restart_mysqld.inc
13
14 SHOW VARIABLES
15 WHERE Variable_name IN
16 ("innodb_buffer_pool_chunk_size","innodb_buffer_pool_instances","innodb_buffer_pool_size");
17
18
19 # In this case 4G does not fit in 32bits, yet on Windows 64-bit, ulong is four bytes long, so
20 # a buggy implementation caused innodb_buffer_pool_chunk_size to be 0
21 let $restart_parameters = restart: --innodb-buffer-pool-instances=64 --innodb-buffer-pool-size=4G --innodb-buffer-pool-chunk-size=128M;
22 --source include/restart_mysqld.inc
23
24 SHOW VARIABLES
25 WHERE Variable_name IN
26 ("innodb_buffer_pool_chunk_size","innodb_buffer_pool_instances","innodb_buffer_pool_size");
27
28
29 # In this case 4G does not fit in 32bits, yet on Windows 64-bit, ulong is four bytes long, so
30 # a buggy implementation caused innodb_buffer_pool_chunk_size to be 0, and then, given that 4G is not
31 # divisible by 33, "rounded it up" to 1.
32 let $restart_parameters = restart: --innodb-buffer-pool-instances=33 --innodb-buffer-pool-size=4G --innodb-buffer-pool-chunk-size=128M;
33 --source include/restart_mysqld.inc
34
35 SHOW VARIABLES
36 WHERE Variable_name IN
37 ("innodb_buffer_pool_chunk_size","innodb_buffer_pool_instances","innodb_buffer_pool_size");
38
39 # Clean up
40
41 let $restart_parameters = restart;
42 --source include/restart_mysqld.inc