File tree Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Expand file tree Collapse file tree 3 files changed +37
-1
lines changed Original file line number Diff line number Diff line change
1
+ set @old_innodb_buffer_pool_size = @@innodb_buffer_pool_size;
2
+ set @old_immediate_scrub_data_val= @@innodb_immediate_scrub_data_uncompressed;
3
+ SET GLOBAL innodb_immediate_scrub_data_uncompressed=1;
4
+ SET GLOBAL innodb_buffer_pool_size= 16777216;
5
+ CREATE TEMPORARY TABLE t1(c1 MEDIUMTEXT) ENGINE=InnoDB;
6
+ INSERT INTO t1 VALUES (repeat(1,16777215));
7
+ DROP TEMPORARY TABLE t1;
8
+ SET GLOBAL innodb_truncate_temporary_tablespace_now=1;
9
+ SET GLOBAL innodb_buffer_pool_size=10485760;
10
+ set global innodb_buffer_pool_size = @old_innodb_buffer_pool_size;
11
+ set global innodb_immediate_scrub_data_uncompressed = @old_immediate_scrub_data_val;
Original file line number Diff line number Diff line change
1
+ --source include/have_innodb.inc
2
+
3
+ set @old_innodb_buffer_pool_size = @@innodb_buffer_pool_size;
4
+ set @old_immediate_scrub_data_val= @@innodb_immediate_scrub_data_uncompressed;
5
+
6
+ SET GLOBAL innodb_immediate_scrub_data_uncompressed=1;
7
+ SET GLOBAL innodb_buffer_pool_size= 16777216;
8
+
9
+ CREATE TEMPORARY TABLE t1(c1 MEDIUMTEXT) ENGINE=InnoDB;
10
+ INSERT INTO t1 VALUES (repeat(1,16777215));
11
+ DROP TEMPORARY TABLE t1;
12
+ SET GLOBAL innodb_truncate_temporary_tablespace_now=1;
13
+
14
+ let $wait_timeout = 180;
15
+ let $wait_condition =
16
+ SELECT SUBSTR(variable_value, 1, 30) = 'Completed resizing buffer pool'
17
+ FROM information_schema.global_status
18
+ WHERE LOWER(variable_name) = 'innodb_buffer_pool_resize_status';
19
+
20
+ SET GLOBAL innodb_buffer_pool_size=10485760;
21
+ --source include/wait_condition.inc
22
+
23
+ set global innodb_buffer_pool_size = @old_innodb_buffer_pool_size;
24
+ set global innodb_immediate_scrub_data_uncompressed = @old_immediate_scrub_data_val;
25
+ --source include/wait_condition.inc
Original file line number Diff line number Diff line change @@ -3714,7 +3714,7 @@ inline void fil_space_t::clear_freed_ranges(uint32_t threshold)
3714
3714
{
3715
3715
if (range.first >= threshold)
3716
3716
continue ;
3717
- else if (range.last > threshold)
3717
+ else if (range.last >= threshold)
3718
3718
{
3719
3719
range_t new_range{range.first , threshold - 1 };
3720
3720
current_ranges.add_range (new_range);
You can’t perform that action at this time.
0 commit comments