summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-11-19 17:46:16 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2021-11-19 17:46:16 +0200
commit4489a89c71ea78f2562159ca0303fbb83da5baa0 (patch)
treef5cfc320d74feb4a5467a980ae01f72a94955a4e
parent7e8a13d9d760a3c24f9e539e8ab2a0f237efafe0 (diff)
downloadmariadb-git-4489a89c71ea78f2562159ca0303fbb83da5baa0.tar.gz
MDEV-27094 Debug builds include useless InnoDB "disabled" options
The following options were introduced in commit 2e814d4702d71a04388386a9f591d14a35980bfe (mariadb-10.2.2) and have little use: innodb_disable_resize_buffer_pool_debug had no effect even in MariaDB 10.2.2 or MySQL 5.7.9. It was introduced in mysql/mysql-server@5c4094cf4971eebab89da4ee4ae92c71f69cd524 to work around a problem that was fixed in mysql/mysql-server@2957ae4f990bf3aed25822b0ce15d3ccad0b54b6 (but the parameter was not removed). innodb_page_cleaner_disabled_debug and innodb_master_thread_disabled_debug are only used by the test innodb.redo_log_during_checkpoint that will be removed as part of this commit. innodb_dict_stats_disabled_debug is only used by that test, and it is redundant because one could simply use innodb_stats_persistent=OFF or the STATS_PERSISTENT=0 attribute of the table in the test to achieve the same effect.
-rw-r--r--mysql-test/suite/innodb/r/buf_pool_resize_oom.result1
-rw-r--r--mysql-test/suite/innodb/r/innodb_buffer_pool_resize_debug.result106
-rw-r--r--mysql-test/suite/innodb/r/innodb_buffer_pool_resize_temporary.result3
-rw-r--r--mysql-test/suite/innodb/r/redo_log_during_checkpoint.result26
-rw-r--r--mysql-test/suite/innodb/t/buf_pool_resize_oom.test1
-rw-r--r--mysql-test/suite/innodb/t/innodb_buffer_pool_resize.test9
-rw-r--r--mysql-test/suite/innodb/t/innodb_buffer_pool_resize_debug.test234
-rw-r--r--mysql-test/suite/innodb/t/innodb_buffer_pool_resize_temporary.test3
-rw-r--r--mysql-test/suite/innodb/t/innodb_buffer_pool_resize_with_chunks.test9
-rw-r--r--mysql-test/suite/innodb/t/redo_log_during_checkpoint.test77
-rw-r--r--mysql-test/suite/perfschema/t/show_sanity.test4
-rw-r--r--mysql-test/suite/sys_vars/r/innodb_disable_resize_buffer_pool_debug_basic.result60
-rw-r--r--mysql-test/suite/sys_vars/r/sysvars_innodb.result48
-rw-r--r--mysql-test/suite/sys_vars/t/innodb_buffer_pool_size_basic.test7
-rw-r--r--mysql-test/suite/sys_vars/t/innodb_disable_resize_buffer_pool_debug_basic.test72
-rw-r--r--storage/innobase/buf/buf0buf.cc3
-rw-r--r--storage/innobase/buf/buf0flu.cc13
-rw-r--r--storage/innobase/dict/dict0stats_bg.cc20
-rw-r--r--storage/innobase/fil/fil0fil.cc11
-rw-r--r--storage/innobase/handler/ha_innodb.cc43
-rw-r--r--storage/innobase/include/buf0buf.h5
-rw-r--r--storage/innobase/include/buf0flu.h7
-rw-r--r--storage/innobase/include/dict0stats_bg.h13
-rw-r--r--storage/innobase/include/srv0srv.h14
-rw-r--r--storage/innobase/log/log0log.cc4
-rw-r--r--storage/innobase/srv/srv0srv.cc53
-rw-r--r--storage/innobase/srv/srv0start.cc3
27 files changed, 4 insertions, 845 deletions
diff --git a/mysql-test/suite/innodb/r/buf_pool_resize_oom.result b/mysql-test/suite/innodb/r/buf_pool_resize_oom.result
index d8f6872ad6f..0bff75701a0 100644
--- a/mysql-test/suite/innodb/r/buf_pool_resize_oom.result
+++ b/mysql-test/suite/innodb/r/buf_pool_resize_oom.result
@@ -3,7 +3,6 @@
# ONLINE WITH MEMORY FULL CONDITION
#
call mtr.add_suppression("InnoDB: failed to allocate the chunk array");
-SET GLOBAL innodb_disable_resize_buffer_pool_debug=OFF;
SET GLOBAL debug_dbug='+d,buf_pool_resize_chunk_null';
SET GLOBAL innodb_buffer_pool_size=@@innodb_buffer_pool_size + 1048576;
# restart
diff --git a/mysql-test/suite/innodb/r/innodb_buffer_pool_resize_debug.result b/mysql-test/suite/innodb/r/innodb_buffer_pool_resize_debug.result
deleted file mode 100644
index 0dea25f6bf1..00000000000
--- a/mysql-test/suite/innodb/r/innodb_buffer_pool_resize_debug.result
+++ /dev/null
@@ -1,106 +0,0 @@
-set global innodb_file_per_table=ON;
-connect con1,localhost,root,,;
-connect con2,localhost,root,,;
-connect con3,localhost,root,,;
-connect con4,localhost,root,,;
-connect con5,localhost,root,,;
-connect con6,localhost,root,,;
-connect con7,localhost,root,,;
-connect con8,localhost,root,,;
-create table t2 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t2 (c1, c2) values (1, 1);
-create table t3 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t3 (c1, c2) values (1, 1);
-create table t4 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t4 (c1, c2) values (1, 1);
-create table t5 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t5 (c1, c2) values (1, 1);
-create table t6 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t6 (c1, c2) values (1, 1);
-create database test2;
-create table test2.t7 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into test2.t7 (c1, c2) values (1, 1);
-drop table test2.t7;
-connection con1;
-set @save_dbug=@@global.debug_dbug;
-set global debug_dbug="+d,ib_buf_pool_resize_wait_before_resize";
-set global innodb_buffer_pool_size = 12*1024*1024;
-set global innodb_buffer_pool_size = 8*1024*1024;
-ERROR HY000: Another buffer pool resize is already in progress.
-select @@global.innodb_buffer_pool_size;
-@@global.innodb_buffer_pool_size
-8388608
-select @@global.innodb_adaptive_hash_index;
-@@global.innodb_adaptive_hash_index
-0
-set global innodb_adaptive_hash_index = ON;
-select @@global.innodb_adaptive_hash_index;
-@@global.innodb_adaptive_hash_index
-0
-set global innodb_adaptive_hash_index = OFF;
-select @@global.innodb_adaptive_hash_index;
-@@global.innodb_adaptive_hash_index
-0
-create table t1 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-connection con2;
-set use_stat_tables=never;
-analyze table t2;
-connection con3;
-alter table t3 algorithm=inplace, add index idx (c1);
-connection con4;
-alter table t4 rename to t0;
-connection con5;
-drop table t5;
-connection con6;
-alter table t6 discard tablespace;
-connection con7;
-drop database test2;
-connection con8;
-select count(*) > 0 from information_schema.innodb_buffer_page;
-connection default;
-set global debug_dbug=@save_dbug;
-connection con1;
-connection con2;
-Table Op Msg_type Msg_text
-test.t2 analyze status OK
-connection con3;
-connection con4;
-connection con5;
-connection con6;
-connection con7;
-connection con8;
-count(*) > 0
-1
-connection default;
-disconnect con3;
-disconnect con4;
-disconnect con5;
-disconnect con6;
-disconnect con7;
-disconnect con8;
-disconnect con1;
-disconnect con2;
-call mtr.add_suppression("\\[ERROR\\] InnoDB: buffer pool 0 : failed to allocate new memory.");
-connection default;
-set global debug_dbug="+d,ib_buf_chunk_init_fails";
-set global innodb_buffer_pool_size = 16*1024*1024;
-set global debug_dbug=@save_dbug;
-create table t8 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t8 (c1, c2) values (1, 1);
-drop table t8;
-drop table t1;
-drop table t2;
-drop table t3;
-drop table t0;
-drop table t6;
-#
-# BUG#23590280 NO WARNING WHEN REDUCING INNODB_BUFFER_POOL_SIZE INSIZE THE FIRST CHUNK
-#
-set @old_innodb_disable_resize = @@innodb_disable_resize_buffer_pool_debug;
-set global innodb_disable_resize_buffer_pool_debug = OFF;
-set @before_innodb_buffer_pool_size = @@innodb_buffer_pool_size;
-set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size;
-set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size * 2;
-set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size;
-set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size;
-SET GLOBAL innodb_disable_resize_buffer_pool_debug = @old_innodb_disable_resize;
diff --git a/mysql-test/suite/innodb/r/innodb_buffer_pool_resize_temporary.result b/mysql-test/suite/innodb/r/innodb_buffer_pool_resize_temporary.result
index 43c2e27a8fb..43d48023958 100644
--- a/mysql-test/suite/innodb/r/innodb_buffer_pool_resize_temporary.result
+++ b/mysql-test/suite/innodb/r/innodb_buffer_pool_resize_temporary.result
@@ -1,8 +1,6 @@
SET @save_limit=@@GLOBAL.innodb_limit_optimistic_insert_debug;
-SET @save_disable=@@GLOBAL.innodb_disable_resize_buffer_pool_debug;
SET @save_size=@@GLOBAL.innodb_buffer_pool_size;
SET GLOBAL innodb_limit_optimistic_insert_debug=2;
-SET GLOBAL innodb_disable_resize_buffer_pool_debug=OFF;
SET GLOBAL innodb_buffer_pool_size=16777216;
CREATE TEMPORARY TABLE t1 (a INT PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 SELECT seq FROM seq_1_to_200;
@@ -13,4 +11,3 @@ COUNT(*) MIN(a) MAX(a)
DROP TEMPORARY TABLE t1;
SET GLOBAL innodb_limit_optimistic_insert_debug=@save_limit;
SET GLOBAL innodb_buffer_pool_size=@save_size;
-SET GLOBAL innodb_disable_resize_buffer_pool_debug=@save_disable;
diff --git a/mysql-test/suite/innodb/r/redo_log_during_checkpoint.result b/mysql-test/suite/innodb/r/redo_log_during_checkpoint.result
deleted file mode 100644
index e95ca52b173..00000000000
--- a/mysql-test/suite/innodb/r/redo_log_during_checkpoint.result
+++ /dev/null
@@ -1,26 +0,0 @@
-SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
-SET GLOBAL innodb_dict_stats_disabled_debug = 1;
-SET GLOBAL innodb_master_thread_disabled_debug = 1;
-SET GLOBAL innodb_log_checkpoint_now = 1;
-CREATE DATABASE very_long_database_name;
-USE very_long_database_name;
-SET debug_dbug = '+d,increase_mtr_checkpoint_size';
-SET debug_dbug = '+d,crash_after_checkpoint';
-set global innodb_log_checkpoint_now = 1;
-ERROR HY000: Lost connection to server during query
-# Skip MLOG_FILE_NAME redo records during recovery
-DROP DATABASE very_long_database_name;
-SET GLOBAL innodb_flush_sync=OFF;
-SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
-SET GLOBAL innodb_dict_stats_disabled_debug = 1;
-SET GLOBAL innodb_master_thread_disabled_debug = 1;
-SET GLOBAL innodb_log_checkpoint_now = 1;
-# Commit the multi-rec mini transaction if mtr size
-# exceeds LOG_CHECKPOINT_FREE_PER_THREAD size during checkpoint.
-CREATE DATABASE very_long_database_name;
-USE very_long_database_name;
-SET debug_dbug = '+d,crash_after_checkpoint';
-set global innodb_log_checkpoint_now = 1;
-ERROR HY000: Lost connection to server during query
-# Skip MLOG_FILE_NAME redo records during recovery
-DROP DATABASE very_long_database_name;
diff --git a/mysql-test/suite/innodb/t/buf_pool_resize_oom.test b/mysql-test/suite/innodb/t/buf_pool_resize_oom.test
index c5af10ef3d3..ea13129e8b1 100644
--- a/mysql-test/suite/innodb/t/buf_pool_resize_oom.test
+++ b/mysql-test/suite/innodb/t/buf_pool_resize_oom.test
@@ -9,7 +9,6 @@
call mtr.add_suppression("InnoDB: failed to allocate the chunk array");
-SET GLOBAL innodb_disable_resize_buffer_pool_debug=OFF;
SET GLOBAL debug_dbug='+d,buf_pool_resize_chunk_null';
--disable_warnings
diff --git a/mysql-test/suite/innodb/t/innodb_buffer_pool_resize.test b/mysql-test/suite/innodb/t/innodb_buffer_pool_resize.test
index 1370ee6c0fc..932829470e3 100644
--- a/mysql-test/suite/innodb/t/innodb_buffer_pool_resize.test
+++ b/mysql-test/suite/innodb/t/innodb_buffer_pool_resize.test
@@ -14,11 +14,6 @@ let $wait_condition =
--disable_query_log
set @old_innodb_buffer_pool_size = @@innodb_buffer_pool_size;
set @old_innodb_adaptive_hash_index = @@innodb_adaptive_hash_index;
-if (`select (version() like '%debug%') > 0`)
-{
- set @old_innodb_disable_resize = @@innodb_disable_resize_buffer_pool_debug;
- set global innodb_disable_resize_buffer_pool_debug = OFF;
-}
--enable_query_log
set global innodb_adaptive_hash_index=ON;
@@ -73,9 +68,5 @@ drop view view0;
--disable_query_log
set global innodb_adaptive_hash_index = @old_innodb_adaptive_hash_index;
set global innodb_buffer_pool_size = @old_innodb_buffer_pool_size;
-if (`select (version() like '%debug%') > 0`)
-{
- set global innodb_disable_resize_buffer_pool_debug = @old_innodb_disable_resize;
-}
--enable_query_log
--source include/wait_condition.inc
diff --git a/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_debug.test b/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_debug.test
deleted file mode 100644
index ddac64c17c9..00000000000
--- a/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_debug.test
+++ /dev/null
@@ -1,234 +0,0 @@
-#
-# WL6117 : Resize the InnoDB Buffer Pool Online
-# (concurrent sql; allocation fail;)
-#
-
---source include/have_innodb.inc
---source include/have_debug.inc
-
---disable_query_log
-set @old_innodb_buffer_pool_size = @@innodb_buffer_pool_size;
-set @old_innodb_file_per_table = @@innodb_file_per_table;
-set @old_innodb_disable_resize = @@innodb_disable_resize_buffer_pool_debug;
-set global innodb_disable_resize_buffer_pool_debug = OFF;
-call mtr.add_suppression("\\[ERROR\\] InnoDB: failed to allocate memory for buffer pool chunk");
---enable_query_log
-
-# Save the initial number of concurrent sessions
---source include/count_sessions.inc
-
-let $wait_timeout = 180;
-
-set global innodb_file_per_table=ON;
-
-connect (con1,localhost,root,,);
-connect (con2,localhost,root,,);
-connect (con3,localhost,root,,);
-connect (con4,localhost,root,,);
-connect (con5,localhost,root,,);
-connect (con6,localhost,root,,);
-connect (con7,localhost,root,,);
-connect (con8,localhost,root,,);
-
-create table t2 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t2 (c1, c2) values (1, 1);
-
-create table t3 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t3 (c1, c2) values (1, 1);
-
-create table t4 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t4 (c1, c2) values (1, 1);
-
-create table t5 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t5 (c1, c2) values (1, 1);
-
-create table t6 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t6 (c1, c2) values (1, 1);
-
-create database test2;
-create table test2.t7 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into test2.t7 (c1, c2) values (1, 1);
-drop table test2.t7;
-
-connection con1;
-set @save_dbug=@@global.debug_dbug;
-set global debug_dbug="+d,ib_buf_pool_resize_wait_before_resize";
-set global innodb_buffer_pool_size = 12*1024*1024;
-
-let $wait_condition =
- SELECT SUBSTR(variable_value, 1, 30) = 'Latching whole of buffer pool.'
- FROM information_schema.global_status
- WHERE variable_name = 'INNODB_BUFFER_POOL_RESIZE_STATUS';
---source include/wait_condition.inc
-
-# trying to update innodb_buffer_pool_size
---error ER_WRONG_ARGUMENTS
-set global innodb_buffer_pool_size = 8*1024*1024;
-select @@global.innodb_buffer_pool_size;
-
-# trying to control adaptive hash index
-select @@global.innodb_adaptive_hash_index;
-set global innodb_adaptive_hash_index = ON;
-select @@global.innodb_adaptive_hash_index;
-set global innodb_adaptive_hash_index = OFF;
-select @@global.innodb_adaptive_hash_index;
-
-# - create table
---send create table t1 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB
-
-connection con2;
-# - analyze table
-set use_stat_tables=never;
---send analyze table t2
-
-connection con3;
-# - alter table ... algorithm=inplace
---send alter table t3 algorithm=inplace, add index idx (c1)
-
-connection con4;
-# - alter table ... rename to
---send alter table t4 rename to t0
-
-connection con5;
-# - drop table
---send drop table t5
-
-connection con6;
-# - alter table ... discard tablespace
---send alter table t6 discard tablespace
-
-connection con7;
-# - drop database
---send drop database test2
-
-connection con8;
-# information schema INNODB_BUFFER_PAGE
---send select count(*) > 0 from information_schema.innodb_buffer_page
-
-connection default;
-set global debug_dbug=@save_dbug;
-
-let $wait_condition =
- SELECT SUBSTR(variable_value, 1, 34) = 'Completed resizing buffer pool at '
- FROM information_schema.global_status
- WHERE variable_name = 'INNODB_BUFFER_POOL_RESIZE_STATUS';
---source include/wait_condition.inc
-
-connection con1;
---reap
-
-connection con2;
---reap
-
-connection con3;
---reap
-
-connection con4;
---reap
-
-connection con5;
---reap
-
-connection con6;
---reap
-
-connection con7;
---reap
-
-connection con8;
---reap
-
-connection default;
-
-disconnect con3;
-disconnect con4;
-disconnect con5;
-disconnect con6;
-disconnect con7;
-disconnect con8;
-disconnect con1;
-disconnect con2;
-
-# fails to allocate new chunks
-call mtr.add_suppression("\\[ERROR\\] InnoDB: buffer pool 0 : failed to allocate new memory.");
-connection default;
-set global debug_dbug="+d,ib_buf_chunk_init_fails";
-set global innodb_buffer_pool_size = 16*1024*1024;
-let $wait_condition =
- SELECT SUBSTR(variable_value, 1, 27) = 'Resizing buffer pool failed'
- FROM information_schema.global_status
- WHERE variable_name = 'INNODB_BUFFER_POOL_RESIZE_STATUS';
---source include/wait_condition.inc
-set global debug_dbug=@save_dbug;
-
-# can be used as usual, even if failed to allocate
-create table t8 (c1 int not null primary key, c2 int not null default 0) engine=InnoDB;
-insert into t8 (c1, c2) values (1, 1);
-drop table t8;
-
-drop table t1;
-drop table t2;
-drop table t3;
-drop table t0;
-drop table t6;
-
---disable_query_log
-set global innodb_buffer_pool_size = @old_innodb_buffer_pool_size;
-set global innodb_file_per_table = @old_innodb_file_per_table;
-set global innodb_disable_resize_buffer_pool_debug = @old_innodb_disable_resize;
---enable_query_log
-
-let $wait_condition =
- SELECT SUBSTR(variable_value, 1, 34) = 'Completed resizing buffer pool at '
- FROM information_schema.global_status
- WHERE variable_name = 'INNODB_BUFFER_POOL_RESIZE_STATUS';
---source include/wait_condition.inc
-
-# Wait till all disconnects are completed]
---source include/wait_until_count_sessions.inc
-
---echo #
---echo # BUG#23590280 NO WARNING WHEN REDUCING INNODB_BUFFER_POOL_SIZE INSIZE THE FIRST CHUNK
---echo #
-
-set @old_innodb_disable_resize = @@innodb_disable_resize_buffer_pool_debug;
-set global innodb_disable_resize_buffer_pool_debug = OFF;
-set @before_innodb_buffer_pool_size = @@innodb_buffer_pool_size;
-
-set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size;
-
-let $wait_timeout = 60;
-let $wait_condition =
- SELECT SUBSTR(variable_value, 1, 19) = 'Size did not change'
- FROM information_schema.global_status
- WHERE VARIABLE_NAME = 'INNODB_BUFFER_POOL_RESIZE_STATUS';
---source include/wait_condition.inc
-
-set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size * 2;
-
-let $wait_timeout = 60;
-let $wait_condition =
- SELECT SUBSTR(variable_value, 1, 9) = 'Completed'
- FROM information_schema.global_status
- WHERE variable_name = 'INNODB_BUFFER_POOL_RESIZE_STATUS';
---source include/wait_condition.inc
-
-set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size;
-
-let $wait_timeout = 60;
-let $wait_condition =
- SELECT SUBSTR(variable_value, 1, 9) = 'Completed'
- FROM information_schema.global_status
- WHERE variable_name = 'INNODB_BUFFER_POOL_RESIZE_STATUS';
---source include/wait_condition.inc
-
-set global innodb_buffer_pool_size=@before_innodb_buffer_pool_size;
-
-let $wait_timeout = 60;
-let $wait_condition =
- SELECT SUBSTR(variable_value, 1, 19) = 'Size did not change'
- FROM information_schema.global_status
- WHERE variable_name = 'INNODB_BUFFER_POOL_RESIZE_STATUS';
---source include/wait_condition.inc
-
-SET GLOBAL innodb_disable_resize_buffer_pool_debug = @old_innodb_disable_resize;
diff --git a/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_temporary.test b/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_temporary.test
index 1390da2745e..1cdf4a318d0 100644
--- a/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_temporary.test
+++ b/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_temporary.test
@@ -3,10 +3,8 @@
--source include/have_debug.inc
SET @save_limit=@@GLOBAL.innodb_limit_optimistic_insert_debug;
-SET @save_disable=@@GLOBAL.innodb_disable_resize_buffer_pool_debug;
SET @save_size=@@GLOBAL.innodb_buffer_pool_size;
SET GLOBAL innodb_limit_optimistic_insert_debug=2;
-SET GLOBAL innodb_disable_resize_buffer_pool_debug=OFF;
SET GLOBAL innodb_buffer_pool_size=16777216;
@@ -27,4 +25,3 @@ DROP TEMPORARY TABLE t1;
SET GLOBAL innodb_limit_optimistic_insert_debug=@save_limit;
SET GLOBAL innodb_buffer_pool_size=@save_size;
-SET GLOBAL innodb_disable_resize_buffer_pool_debug=@save_disable;
diff --git a/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_with_chunks.test b/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_with_chunks.test
index 36d6bd739b3..b63bede11ad 100644
--- a/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_with_chunks.test
+++ b/mysql-test/suite/innodb/t/innodb_buffer_pool_resize_with_chunks.test
@@ -14,11 +14,6 @@ let $wait_condition =
--disable_query_log
set @old_innodb_buffer_pool_size = @@innodb_buffer_pool_size;
-if (`select (version() like '%debug%') > 0`)
-{
- set @old_innodb_disable_resize = @@innodb_disable_resize_buffer_pool_debug;
- set global innodb_disable_resize_buffer_pool_debug = OFF;
-}
--enable_query_log
select @@innodb_buffer_pool_chunk_size;
@@ -62,9 +57,5 @@ select @@innodb_buffer_pool_size;
--disable_query_log
set global innodb_buffer_pool_size = @old_innodb_buffer_pool_size;
-if (`select (version() like '%debug%') > 0`)
-{
- set global innodb_disable_resize_buffer_pool_debug = @old_innodb_disable_resize;
-}
--enable_query_log
--source include/wait_condition.inc
diff --git a/mysql-test/suite/innodb/t/redo_log_during_checkpoint.test b/mysql-test/suite/innodb/t/redo_log_during_checkpoint.test
deleted file mode 100644
index 85beb3ee1d2..00000000000
--- a/mysql-test/suite/innodb/t/redo_log_during_checkpoint.test
+++ /dev/null
@@ -1,77 +0,0 @@
---source include/have_innodb.inc
---source include/have_debug.inc
---source include/big_test.inc
-# Embedded server tests do not support restarting
---source include/not_embedded.inc
-# We are crashing the server on purpose
---source include/not_valgrind.inc
---source include/not_crashrep.inc
-
-# The test does work with any page size, but we want to reduce the
-# test running time by limiting the combinations. The redo log format
-# is independent of the page size.
---source include/have_innodb_16k.inc
-
-let $restart_noprint=2;
-SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
-SET GLOBAL innodb_dict_stats_disabled_debug = 1;
-SET GLOBAL innodb_master_thread_disabled_debug = 1;
-SET GLOBAL innodb_log_checkpoint_now = 1;
-
-CREATE DATABASE very_long_database_name;
-USE very_long_database_name;
-let $i=1300;
---disable_query_log
-while ($i)
-{
- eval CREATE TABLE veryLongTableNameToCreateMLOG_FILE_NAMErecords$i (a SERIAL)
- ENGINE=InnoDB;
- dec $i;
-}
---enable_query_log
-
---let $_server_id= `SELECT @@server_id`
---let $_expect_file_name= $MYSQLTEST_VARDIR/tmp/mysqld.$_server_id.expect
---exec echo "wait" > $_expect_file_name
-
-SET debug_dbug = '+d,increase_mtr_checkpoint_size';
-SET debug_dbug = '+d,crash_after_checkpoint';
---error 2013
-set global innodb_log_checkpoint_now = 1;
-
---echo # Skip MLOG_FILE_NAME redo records during recovery
---source include/start_mysqld.inc
-
-DROP DATABASE very_long_database_name;
-
-SET GLOBAL innodb_flush_sync=OFF;
-SET GLOBAL innodb_page_cleaner_disabled_debug = 1;
-SET GLOBAL innodb_dict_stats_disabled_debug = 1;
-SET GLOBAL innodb_master_thread_disabled_debug = 1;
-SET GLOBAL innodb_log_checkpoint_now = 1;
-
---echo # Commit the multi-rec mini transaction if mtr size
---echo # exceeds LOG_CHECKPOINT_FREE_PER_THREAD size during checkpoint.
-
-CREATE DATABASE very_long_database_name;
-USE very_long_database_name;
-let $i=1300;
---disable_query_log
-while ($i)
-{
- eval CREATE TABLE veryLongTableNameToCreateMLOG_FILE_NAMErecords$i (a SERIAL)
- ENGINE=InnoDB;
- dec $i;
-}
---enable_query_log
-
---exec echo "wait" > $_expect_file_name
-SET debug_dbug = '+d,crash_after_checkpoint';
---error 2013
-set global innodb_log_checkpoint_now = 1;
-
---echo # Skip MLOG_FILE_NAME redo records during recovery
---let $restart_parameters = --debug-dbug=d,reduce_recv_parsing_buf
---source include/start_mysqld.inc
-
-DROP DATABASE very_long_database_name;
diff --git a/mysql-test/suite/perfschema/t/show_sanity.test b/mysql-test/suite/perfschema/t/show_sanity.test
index fb707caa840..171bbfa8bd6 100644
--- a/mysql-test/suite/perfschema/t/show_sanity.test
+++ b/mysql-test/suite/perfschema/t/show_sanity.test
@@ -412,9 +412,7 @@ insert into test.sanity values
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DATA_FILE_PATH"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DATA_HOME_DIR"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DEFAULT_ROW_FORMAT"),
- ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DICT_STATS_DISABLED_DEBUG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DISABLE_BACKGROUND_MERGE"),
- ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DISABLE_RESIZE_BUFFER_POOL_DEBUG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DISABLE_SORT_FILE_CACHE"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_DOUBLEWRITE"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_FAST_SHUTDOWN"),
@@ -449,7 +447,6 @@ insert into test.sanity values
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_GROUP_HOME_DIR"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LOG_WRITE_AHEAD_SIZE"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_LRU_SCAN_DEPTH"),
- ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MASTER_THREAD_DISABLED_DEBUG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MAX_DIRTY_PAGES_PCT"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MAX_DIRTY_PAGES_PCT_LWM"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_MAX_PURGE_LAG"),
@@ -466,7 +463,6 @@ insert into test.sanity values
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_ONLINE_ALTER_LOG_MAX_SIZE"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_OPEN_FILES"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_OPTIMIZE_FULLTEXT_ONLY"),
- ("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PAGE_CLEANER_DISABLED_DEBUG"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PAGE_SIZE"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PRINT_ALL_DEADLOCKS"),
("JUNK: GLOBAL-ONLY", "I_S.SESSION_VARIABLES", "INNODB_PURGE_BATCH_SIZE"),
diff --git a/mysql-test/suite/sys_vars/r/innodb_disable_resize_buffer_pool_debug_basic.result b/mysql-test/suite/sys_vars/r/innodb_disable_resize_buffer_pool_debug_basic.result
deleted file mode 100644
index bbac9a4cde6..00000000000
--- a/mysql-test/suite/sys_vars/r/innodb_disable_resize_buffer_pool_debug_basic.result
+++ /dev/null
@@ -1,60 +0,0 @@
-#
-# Basic test for innodb_disable_resize_buffer_pool_debug
-#
-SET @start_global_value = @@global.innodb_disable_resize_buffer_pool_debug;
-SET @@global.innodb_disable_resize_buffer_pool_debug = 0;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
-@@global.innodb_disable_resize_buffer_pool_debug
-0
-SET @@global.innodb_disable_resize_buffer_pool_debug ='On' ;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
-@@global.innodb_disable_resize_buffer_pool_debug
-1
-SET @@global.innodb_disable_resize_buffer_pool_debug ='Off' ;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
-@@global.innodb_disable_resize_buffer_pool_debug
-0
-SET @@global.innodb_disable_resize_buffer_pool_debug = 1;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
-@@global.innodb_disable_resize_buffer_pool_debug
-1
-SELECT IF(@@GLOBAL.innodb_disable_resize_buffer_pool_debug,'ON','OFF') = VARIABLE_VALUE
-FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
-WHERE VARIABLE_NAME='innodb_disable_resize_buffer_pool_debug';
-IF(@@GLOBAL.innodb_disable_resize_buffer_pool_debug,'ON','OFF') = VARIABLE_VALUE
-1
-1 Expected
-SELECT COUNT(@@GLOBAL.innodb_disable_resize_buffer_pool_debug);
-COUNT(@@GLOBAL.innodb_disable_resize_buffer_pool_debug)
-1
-1 Expected
-SELECT COUNT(VARIABLE_VALUE)
-FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
-WHERE VARIABLE_NAME='innodb_disable_resize_buffer_pool_debug';
-COUNT(VARIABLE_VALUE)
-1
-1 Expected
-SELECT @@innodb_disable_resize_buffer_pool_debug = @@GLOBAL.innodb_disable_resize_buffer_pool_debug;
-@@innodb_disable_resize_buffer_pool_debug = @@GLOBAL.innodb_disable_resize_buffer_pool_debug
-1
-1 Expected
-SELECT COUNT(@@innodb_disable_resize_buffer_pool_debug);
-COUNT(@@innodb_disable_resize_buffer_pool_debug)
-1
-1 Expected
-SELECT COUNT(@@local.innodb_disable_resize_buffer_pool_debug);
-ERROR HY000: Variable 'innodb_disable_resize_buffer_pool_debug' is a GLOBAL variable
-Expected error 'Variable is a GLOBAL variable'
-SELECT COUNT(@@SESSION.innodb_disable_resize_buffer_pool_debug);
-ERROR HY000: Variable 'innodb_disable_resize_buffer_pool_debug' is a GLOBAL variable
-Expected error 'Variable is a GLOBAL variable'
-SELECT COUNT(@@GLOBAL.innodb_disable_resize_buffer_pool_debug);
-COUNT(@@GLOBAL.innodb_disable_resize_buffer_pool_debug)
-1
-1 Expected
-SELECT innodb_disable_resize_buffer_pool_debug = @@SESSION.innodb_disable_resize_buffer_pool_debug;
-ERROR 42S22: Unknown column 'innodb_disable_resize_buffer_pool_debug' in 'field list'
-SET @@global.innodb_disable_resize_buffer_pool_debug = @start_global_value;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
-@@global.innodb_disable_resize_buffer_pool_debug
-1
diff --git a/mysql-test/suite/sys_vars/r/sysvars_innodb.result b/mysql-test/suite/sys_vars/r/sysvars_innodb.result
index a893bd007dd..177a27925e6 100644
--- a/mysql-test/suite/sys_vars/r/sysvars_innodb.result
+++ b/mysql-test/suite/sys_vars/r/sysvars_innodb.result
@@ -513,30 +513,6 @@ NUMERIC_BLOCK_SIZE 0
ENUM_VALUE_LIST NULL
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
-VARIABLE_NAME INNODB_DICT_STATS_DISABLED_DEBUG
-SESSION_VALUE NULL
-DEFAULT_VALUE OFF
-VARIABLE_SCOPE GLOBAL
-VARIABLE_TYPE BOOLEAN
-VARIABLE_COMMENT Disable dict_stats thread
-NUMERIC_MIN_VALUE NULL
-NUMERIC_MAX_VALUE NULL
-NUMERIC_BLOCK_SIZE NULL
-ENUM_VALUE_LIST OFF,ON
-READ_ONLY NO
-COMMAND_LINE_ARGUMENT OPTIONAL
-VARIABLE_NAME INNODB_DISABLE_RESIZE_BUFFER_POOL_DEBUG
-SESSION_VALUE NULL
-DEFAULT_VALUE ON
-VARIABLE_SCOPE GLOBAL
-VARIABLE_TYPE BOOLEAN
-VARIABLE_COMMENT Disable resizing buffer pool to make assertion code not expensive.
-NUMERIC_MIN_VALUE NULL
-NUMERIC_MAX_VALUE NULL
-NUMERIC_BLOCK_SIZE NULL
-ENUM_VALUE_LIST OFF,ON
-READ_ONLY NO
-COMMAND_LINE_ARGUMENT NONE
VARIABLE_NAME INNODB_DISABLE_SORT_FILE_CACHE
SESSION_VALUE NULL
DEFAULT_VALUE OFF
@@ -1089,18 +1065,6 @@ NUMERIC_BLOCK_SIZE 0
ENUM_VALUE_LIST NULL
READ_ONLY NO
COMMAND_LINE_ARGUMENT REQUIRED
-VARIABLE_NAME INNODB_MASTER_THREAD_DISABLED_DEBUG
-SESSION_VALUE NULL
-DEFAULT_VALUE OFF
-VARIABLE_SCOPE GLOBAL
-VARIABLE_TYPE BOOLEAN
-VARIABLE_COMMENT Disable master thread
-NUMERIC_MIN_VALUE NULL
-NUMERIC_MAX_VALUE NULL
-NUMERIC_BLOCK_SIZE NULL
-ENUM_VALUE_LIST OFF,ON
-READ_ONLY NO
-COMMAND_LINE_ARGUMENT OPTIONAL
VARIABLE_NAME INNODB_MAX_DIRTY_PAGES_PCT
SESSION_VALUE NULL
DEFAULT_VALUE 90.000000
@@ -1293,18 +1257,6 @@ NUMERIC_BLOCK_SIZE NULL
ENUM_VALUE_LIST OFF,ON
READ_ONLY NO
COMMAND_LINE_ARGUMENT NONE
-VARIABLE_NAME INNODB_PAGE_CLEANER_DISABLED_DEBUG
-SESSION_VALUE NULL
-DEFAULT_VALUE OFF
-VARIABLE_SCOPE GLOBAL
-VARIABLE_TYPE BOOLEAN
-VARIABLE_COMMENT Disable page cleaner
-NUMERIC_MIN_VALUE NULL
-NUMERIC_MAX_VALUE NULL
-NUMERIC_BLOCK_SIZE NULL
-ENUM_VALUE_LIST OFF,ON
-READ_ONLY NO
-COMMAND_LINE_ARGUMENT OPTIONAL
VARIABLE_NAME INNODB_PAGE_SIZE
SESSION_VALUE NULL
DEFAULT_VALUE 16384
diff --git a/mysql-test/suite/sys_vars/t/innodb_buffer_pool_size_basic.test b/mysql-test/suite/sys_vars/t/innodb_buffer_pool_size_basic.test
index 4dd4a3aba0a..f37e3e2e0fd 100644
--- a/mysql-test/suite/sys_vars/t/innodb_buffer_pool_size_basic.test
+++ b/mysql-test/suite/sys_vars/t/innodb_buffer_pool_size_basic.test
@@ -24,13 +24,6 @@
--source include/have_innodb.inc
---disable_query_log
-if (`select (version() like '%debug%') > 0`)
-{
- set global innodb_disable_resize_buffer_pool_debug = OFF;
-}
---enable_query_log
-
let $wait_condition =
SELECT SUBSTR(variable_value, 1, 34) = 'Completed resizing buffer pool at '
FROM information_schema.global_status
diff --git a/mysql-test/suite/sys_vars/t/innodb_disable_resize_buffer_pool_debug_basic.test b/mysql-test/suite/sys_vars/t/innodb_disable_resize_buffer_pool_debug_basic.test
deleted file mode 100644
index e381e746c06..00000000000
--- a/mysql-test/suite/sys_vars/t/innodb_disable_resize_buffer_pool_debug_basic.test
+++ /dev/null
@@ -1,72 +0,0 @@
---echo #
---echo # Basic test for innodb_disable_resize_buffer_pool_debug
---echo #
-
---source include/have_innodb.inc
-
-# The config variable is a debug variable
--- source include/have_debug.inc
-
-SET @start_global_value = @@global.innodb_disable_resize_buffer_pool_debug;
-
-# Check if Value can set
-
-SET @@global.innodb_disable_resize_buffer_pool_debug = 0;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
-
-SET @@global.innodb_disable_resize_buffer_pool_debug ='On' ;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
-
-SET @@global.innodb_disable_resize_buffer_pool_debug ='Off' ;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
-
-SET @@global.innodb_disable_resize_buffer_pool_debug = 1;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
-
-# Check if the value in GLOBAL Table matches value in variable
-
---disable_warnings
-SELECT IF(@@GLOBAL.innodb_disable_resize_buffer_pool_debug,'ON','OFF') = VARIABLE_VALUE
-FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
-WHERE VARIABLE_NAME='innodb_disable_resize_buffer_pool_debug';
---enable_warnings
---echo 1 Expected
-
-SELECT COUNT(@@GLOBAL.innodb_disable_resize_buffer_pool_debug);
---echo 1 Expected
-
---disable_warnings
-SELECT COUNT(VARIABLE_VALUE)
-FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
-WHERE VARIABLE_NAME='innodb_disable_resize_buffer_pool_debug';
---enable_warnings
---echo 1 Expected
-
-# Check if accessing variable with and without GLOBAL point to same variable
-
-SELECT @@innodb_disable_resize_buffer_pool_debug = @@GLOBAL.innodb_disable_resize_buffer_pool_debug;
---echo 1 Expected
-
-# Check if innodb_disable_resize_buffer_pool_debug can be accessed with and without @@ sign
-
-SELECT COUNT(@@innodb_disable_resize_buffer_pool_debug);
---echo 1 Expected
-
---Error ER_INCORRECT_GLOBAL_LOCAL_VAR
-SELECT COUNT(@@local.innodb_disable_resize_buffer_pool_debug);
---echo Expected error 'Variable is a GLOBAL variable'
-
---Error ER_INCORRECT_GLOBAL_LOCAL_VAR
-SELECT COUNT(@@SESSION.innodb_disable_resize_buffer_pool_debug);
---echo Expected error 'Variable is a GLOBAL variable'
-
-SELECT COUNT(@@GLOBAL.innodb_disable_resize_buffer_pool_debug);
---echo 1 Expected
-
---Error ER_BAD_FIELD_ERROR
-SELECT innodb_disable_resize_buffer_pool_debug = @@SESSION.innodb_disable_resize_buffer_pool_debug;
-
-# Cleanup
-
-SET @@global.innodb_disable_resize_buffer_pool_debug = @start_global_value;
-SELECT @@global.innodb_disable_resize_buffer_pool_debug;
diff --git a/storage/innobase/buf/buf0buf.cc b/storage/innobase/buf/buf0buf.cc
index 8126b61bcf1..720a9f39ebb 100644
--- a/storage/innobase/buf/buf0buf.cc
+++ b/storage/innobase/buf/buf0buf.cc
@@ -330,9 +330,6 @@ buf_pool_t::chunk_t::map *buf_pool_t::chunk_t::map_reg;
buf_pool_t::chunk_t::map *buf_pool_t::chunk_t::map_ref;
#ifdef UNIV_DEBUG
-/** Disable resizing buffer pool to make assertion code not expensive. */
-my_bool buf_disable_resize_buffer_pool_debug = TRUE;
-
/** This is used to insert validation operations in execution
in the debug version */
static Atomic_counter<size_t> buf_dbg_counter;
diff --git a/storage/innobase/buf/buf0flu.cc b/storage/innobase/buf/buf0flu.cc
index d53e5cda650..aa2768560da 100644
--- a/storage/innobase/buf/buf0flu.cc
+++ b/storage/innobase/buf/buf0flu.cc
@@ -83,10 +83,6 @@ static struct
ulint flush_pass;
} page_cleaner;
-#ifdef UNIV_DEBUG
-my_bool innodb_page_cleaner_disabled_debug;
-#endif /* UNIV_DEBUG */
-
/** If LRU list of a buf_pool is less than this size then LRU eviction
should not happen. This is because when we do LRU flushing we also put
the blocks on free list. If LRU list is very small then we can end up
@@ -1793,8 +1789,7 @@ ATTRIBUTE_COLD void buf_flush_wait_flushed(lsn_t sync_lsn)
if (buf_pool.get_oldest_modification(sync_lsn) < sync_lsn)
{
#if 1 /* FIXME: remove this, and guarantee that the page cleaner serves us */
- if (UNIV_UNLIKELY(!buf_page_cleaner_is_active)
- ut_d(|| innodb_page_cleaner_disabled_debug))
+ if (UNIV_UNLIKELY(!buf_page_cleaner_is_active))
{
do
{
@@ -2326,12 +2321,6 @@ do_checkpoint:
goto unemployed;
}
-#ifdef UNIV_DEBUG
- while (innodb_page_cleaner_disabled_debug && !buf_flush_sync_lsn &&
- srv_shutdown_state == SRV_SHUTDOWN_NONE)
- std::this_thread::sleep_for(std::chrono::milliseconds(100));
-#endif /* UNIV_DEBUG */
-
#ifndef DBUG_OFF
next:
#endif /* !DBUG_OFF */
diff --git a/storage/innobase/dict/dict0stats_bg.cc b/storage/innobase/dict/dict0stats_bg.cc
index 645f5818f57..e035c0688ee 100644
--- a/storage/innobase/dict/dict0stats_bg.cc
+++ b/storage/innobase/dict/dict0stats_bg.cc
@@ -46,11 +46,6 @@ Created Apr 25, 2012 Vasil Dimov
#define MIN_RECALC_INTERVAL 10 /* seconds */
static void dict_stats_schedule(int ms);
-#ifdef UNIV_DEBUG
-/** Used by SET GLOBAL innodb_dict_stats_disabled_debug = 1; */
-my_bool innodb_dict_stats_disabled_debug;
-#endif /* UNIV_DEBUG */
-
/** Protects recalc_pool */
static mysql_mutex_t recalc_pool_mutex;
@@ -376,21 +371,6 @@ done:
return update_now;
}
-#ifdef UNIV_DEBUG
-/** Disables dict stats thread. It's used by:
- SET GLOBAL innodb_dict_stats_disabled_debug = 1 (0).
-@param[in] save immediate result from check function */
-void dict_stats_disabled_debug_update(THD*, st_mysql_sys_var*, void*,
- const void* save)
-{
- const bool disable = *static_cast<const my_bool*>(save);
- if (disable)
- dict_stats_shutdown();
- else
- dict_stats_start();
-}
-#endif /* UNIV_DEBUG */
-
static tpool::timer* dict_stats_timer;
static std::mutex dict_stats_mutex;
diff --git a/storage/innobase/fil/fil0fil.cc b/storage/innobase/fil/fil0fil.cc
index d2e40c6e47a..0007fde5f43 100644
--- a/storage/innobase/fil/fil0fil.cc
+++ b/storage/innobase/fil/fil0fil.cc
@@ -3126,12 +3126,6 @@ fil_names_clear(
bool do_write)
{
mtr_t mtr;
- ulint mtr_checkpoint_size = RECV_SCAN_SIZE - 1;
-
- DBUG_EXECUTE_IF(
- "increase_mtr_checkpoint_size",
- mtr_checkpoint_size = 75 * 1024;
- );
mysql_mutex_assert_owner(&log_sys.mutex);
ut_ad(lsn);
@@ -3140,9 +3134,8 @@ fil_names_clear(
for (auto it = fil_system.named_spaces.begin();
it != fil_system.named_spaces.end(); ) {
- if (mtr.get_log()->size()
- + (3 + 5 + 1) + strlen(it->chain.start->name)
- >= mtr_checkpoint_size) {
+ if (mtr.get_log()->size() + strlen(it->chain.start->name)
+ >= RECV_SCAN_SIZE - (3 + 5)) {
/* Prevent log parse buffer overflow */
mtr.commit_files();
mtr.start();
diff --git a/storage/innobase/handler/ha_innodb.cc b/storage/innobase/handler/ha_innodb.cc
index f6dffd069e2..71155ab0f5c 100644
--- a/storage/innobase/handler/ha_innodb.cc
+++ b/storage/innobase/handler/ha_innodb.cc
@@ -19626,29 +19626,7 @@ static MYSQL_SYSVAR_UINT(saved_page_number_debug,
srv_saved_page_number_debug, PLUGIN_VAR_OPCMDARG,
"An InnoDB page number.",
NULL, NULL, 0, 0, UINT_MAX32, 0);
-
-static MYSQL_SYSVAR_BOOL(disable_resize_buffer_pool_debug,
- buf_disable_resize_buffer_pool_debug, PLUGIN_VAR_NOCMDARG,
- "Disable resizing buffer pool to make assertion code not expensive.",
- NULL, NULL, TRUE);
-
-static MYSQL_SYSVAR_BOOL(page_cleaner_disabled_debug,
- innodb_page_cleaner_disabled_debug, PLUGIN_VAR_OPCMDARG,
- "Disable page cleaner",
- NULL, NULL, FALSE);
-
-static MYSQL_SYSVAR_BOOL(dict_stats_disabled_debug,
- innodb_dict_stats_disabled_debug,
- PLUGIN_VAR_OPCMDARG,
- "Disable dict_stats thread",
- NULL, dict_stats_disabled_debug_update, FALSE);
-
-static MYSQL_SYSVAR_BOOL(master_thread_disabled_debug,
- srv_master_thread_disabled_debug,
- PLUGIN_VAR_OPCMDARG,
- "Disable master thread",
- NULL, srv_master_thread_disabled_debug_update, FALSE);
-#endif /* UNIV_DEBUG */
+#endif
static MYSQL_SYSVAR_BOOL(force_primary_key,
srv_force_primary_key,
@@ -19890,10 +19868,6 @@ static struct st_mysql_sys_var* innobase_system_variables[]= {
MYSQL_SYSVAR(data_file_size_debug),
MYSQL_SYSVAR(fil_make_page_dirty_debug),
MYSQL_SYSVAR(saved_page_number_debug),
- MYSQL_SYSVAR(disable_resize_buffer_pool_debug),
- MYSQL_SYSVAR(page_cleaner_disabled_debug),
- MYSQL_SYSVAR(dict_stats_disabled_debug),
- MYSQL_SYSVAR(master_thread_disabled_debug),
#endif /* UNIV_DEBUG */
MYSQL_SYSVAR(force_primary_key),
MYSQL_SYSVAR(fatal_semaphore_wait_threshold),
@@ -20871,21 +20845,6 @@ innodb_buffer_pool_size_validate(
return(1);
}
-#ifdef UNIV_DEBUG
- if (buf_disable_resize_buffer_pool_debug == TRUE) {
- push_warning_printf(thd, Sql_condition::WARN_LEVEL_WARN,
- ER_WRONG_ARGUMENTS,
- "Cannot update innodb_buffer_pool_size,"
- " because innodb_disable_resize_buffer_pool_debug"
- " is set.");
- ib::warn() << "Cannot update innodb_buffer_pool_size,"
- " because innodb_disable_resize_buffer_pool_debug"
- " is set.";
- return(1);
- }
-#endif /* UNIV_DEBUG */
-
-
mysql_mutex_lock(&buf_pool.mutex);
if (srv_buf_pool_old_size != srv_buf_pool_size) {
diff --git a/storage/innobase/include/buf0buf.h b/storage/innobase/include/buf0buf.h
index ab915d1303f..3fb61639e84 100644
--- a/storage/innobase/include/buf0buf.h
+++ b/storage/innobase/include/buf0buf.h
@@ -68,11 +68,6 @@ struct fil_addr_t;
#define BUF_EVICT_IF_IN_POOL 20 /*!< evict a clean block if found */
/* @} */
-# ifdef UNIV_DEBUG
-extern my_bool buf_disable_resize_buffer_pool_debug; /*!< if TRUE, resizing
- buffer pool is not allowed. */
-# endif /* UNIV_DEBUG */
-
/** This structure defines information we will fetch from each buffer pool. It
will be used to print table IO stats */
struct buf_pool_info_t
diff --git a/storage/innobase/include/buf0flu.h b/storage/innobase/include/buf0flu.h
index f955eff158d..65a58815f40 100644
--- a/storage/innobase/include/buf0flu.h
+++ b/storage/innobase/include/buf0flu.h
@@ -41,13 +41,6 @@ extern ulint buf_lru_freed_page_count;
/** Flag indicating if the page_cleaner is in active state. */
extern Atomic_relaxed<bool> buf_page_cleaner_is_active;
-#ifdef UNIV_DEBUG
-
-/** Value of MySQL global variable used to disable page cleaner. */
-extern my_bool innodb_page_cleaner_disabled_debug;
-
-#endif /* UNIV_DEBUG */
-
/** Remove all dirty pages belonging to a given tablespace when we are
deleting the data file of that tablespace.
The pages still remain a part of LRU and are evicted from
diff --git a/storage/innobase/include/dict0stats_bg.h b/storage/innobase/include/dict0stats_bg.h
index f047d404693..5604420134b 100644
--- a/storage/innobase/include/dict0stats_bg.h
+++ b/storage/innobase/include/dict0stats_bg.h
@@ -34,11 +34,6 @@ Created Apr 26, 2012 Vasil Dimov
extern mysql_pfs_key_t recalc_pool_mutex_key;
#endif /* HAVE_PSI_INTERFACE */
-#ifdef UNIV_DEBUG
-/** Value of MySQL global used to disable dict_stats thread. */
-extern my_bool innodb_dict_stats_disabled_debug;
-#endif /* UNIV_DEBUG */
-
/** Delete a table from the auto recalc pool, and ensure that
no statistics are being updated on it. */
void dict_stats_recalc_pool_del(table_id_t id, bool have_mdl_exclusive);
@@ -53,14 +48,6 @@ Free resources allocated by dict_stats_thread_init(), must be called
after dict_stats task has exited. */
void dict_stats_deinit();
-#ifdef UNIV_DEBUG
-/** Disables dict stats thread. It's used by:
- SET GLOBAL innodb_dict_stats_disabled_debug = 1 (0).
-@param[in] save immediate result from check function */
-void dict_stats_disabled_debug_update(THD*, st_mysql_sys_var*, void*,
- const void* save);
-#endif /* UNIV_DEBUG */
-
/** Start the dict stats timer. */
void dict_stats_start();
diff --git a/storage/innobase/include/srv0srv.h b/storage/innobase/include/srv0srv.h
index ef98b53e0cc..6e8e2952876 100644
--- a/storage/innobase/include/srv0srv.h
+++ b/storage/innobase/include/srv0srv.h
@@ -452,8 +452,6 @@ extern ulint srv_log_writes_and_flush;
extern my_bool innodb_evict_tables_on_commit_debug;
extern my_bool srv_purge_view_update_only_debug;
-/** Value of MySQL global used to disable master thread. */
-extern my_bool srv_master_thread_disabled_debug;
/** InnoDB system tablespace to set during recovery */
extern uint srv_sys_space_size_debug;
/** whether redo log file has been created at startup */
@@ -679,18 +677,6 @@ void srv_purge_shutdown();
/** Init purge tasks*/
void srv_init_purge_tasks();
-#ifdef UNIV_DEBUG
-/** Disables master thread. It's used by:
- SET GLOBAL innodb_master_thread_disabled_debug = 1 (0).
-@param[in] save immediate result from check function */
-void
-srv_master_thread_disabled_debug_update(THD*, st_mysql_sys_var*, void*,
- const void* save);
-
-/** Enable the master thread on shutdown. */
-void srv_master_thread_enable();
-#endif /* UNIV_DEBUG */
-
/** Status variables to be passed to MySQL */
struct export_var_t{
#ifdef BTR_CUR_HASH_ADAPT
diff --git a/storage/innobase/log/log0log.cc b/storage/innobase/log/log0log.cc
index a33b79d284b..1ff603a90a1 100644
--- a/storage/innobase/log/log0log.cc
+++ b/storage/innobase/log/log0log.cc
@@ -836,7 +836,6 @@ repeat:
ret_lsn2= flush_lock.release(flush_lsn);
log_flush_notify(flush_lsn);
- DBUG_EXECUTE_IF("crash_after_log_write_upto", DBUG_SUICIDE(););
}
if (ret_lsn1 || ret_lsn2)
@@ -975,8 +974,6 @@ ATTRIBUTE_COLD void log_write_checkpoint_info(lsn_t end_lsn)
MONITOR_INC(MONITOR_NUM_CHECKPOINT);
- DBUG_EXECUTE_IF("crash_after_checkpoint", DBUG_SUICIDE(););
-
mysql_mutex_unlock(&log_sys.mutex);
}
@@ -1056,7 +1053,6 @@ ATTRIBUTE_COLD void logs_empty_and_mark_files_at_shutdown()
dict_stats_shutdown();
btr_defragment_shutdown();
- ut_d(srv_master_thread_enable());
srv_shutdown_state = SRV_SHUTDOWN_CLEANUP;
if (srv_buffer_pool_dump_at_shutdown &&
diff --git a/storage/innobase/srv/srv0srv.cc b/storage/innobase/srv/srv0srv.cc
index 83d6520ea86..9c5aea2a453 100644
--- a/storage/innobase/srv/srv0srv.cc
+++ b/storage/innobase/srv/srv0srv.cc
@@ -147,13 +147,6 @@ my_bool srv_use_atomic_writes;
/** innodb_compression_algorithm; used with page compression */
ulong innodb_compression_algorithm;
-#ifdef UNIV_DEBUG
-/** Used by SET GLOBAL innodb_master_thread_disabled_debug = X. */
-my_bool srv_master_thread_disabled_debug;
-/** Event used to inform that master thread is disabled. */
-static pthread_cond_t srv_master_thread_disabled_cond;
-#endif /* UNIV_DEBUG */
-
/*------------------------- LOG FILES ------------------------ */
char* srv_log_group_home_dir;
@@ -664,7 +657,6 @@ static void srv_init()
UT_LIST_INIT(srv_sys.tasks, &que_thr_t::queue);
need_srv_free = true;
- ut_d(pthread_cond_init(&srv_master_thread_disabled_cond, nullptr));
mysql_mutex_init(page_zip_stat_per_index_mutex_key,
&page_zip_stat_per_index_mutex, nullptr);
@@ -688,8 +680,6 @@ srv_free(void)
mysql_mutex_destroy(&page_zip_stat_per_index_mutex);
mysql_mutex_destroy(&srv_sys.tasks_mutex);
- ut_d(pthread_cond_destroy(&srv_master_thread_disabled_cond));
-
trx_i_s_cache_free(trx_i_s_cache);
srv_thread_pool_end();
}
@@ -1531,48 +1521,6 @@ srv_shutdown_print_master_pending(
}
}
-#ifdef UNIV_DEBUG
-/** Waits in loop as long as master thread is disabled (debug) */
-static void srv_master_do_disabled_loop()
-{
- if (!srv_master_thread_disabled_debug)
- return;
- srv_main_thread_op_info = "disabled";
- mysql_mutex_lock(&LOCK_global_system_variables);
- while (srv_master_thread_disabled_debug)
- my_cond_wait(&srv_master_thread_disabled_cond,
- &LOCK_global_system_variables.m_mutex);
- mysql_mutex_unlock(&LOCK_global_system_variables);
- srv_main_thread_op_info = "";
-}
-
-/** Disables master thread. It's used by:
- SET GLOBAL innodb_master_thread_disabled_debug = 1 (0).
-@param[in] save immediate result from check function */
-void
-srv_master_thread_disabled_debug_update(THD*, st_mysql_sys_var*, void*,
- const void* save)
-{
- mysql_mutex_assert_owner(&LOCK_global_system_variables);
- const bool disable= *static_cast<const my_bool*>(save);
- srv_master_thread_disabled_debug= disable;
- if (!disable)
- pthread_cond_signal(&srv_master_thread_disabled_cond);
-}
-
-/** Enable the master thread on shutdown. */
-void srv_master_thread_enable()
-{
- if (srv_master_thread_disabled_debug)
- {
- mysql_mutex_lock(&LOCK_global_system_variables);
- srv_master_thread_disabled_debug= FALSE;
- pthread_cond_signal(&srv_master_thread_disabled_cond);
- mysql_mutex_unlock(&LOCK_global_system_variables);
- }
-}
-#endif /* UNIV_DEBUG */
-
/** Perform periodic tasks whenever the server is active.
@param counter_time microsecond_interval_timer() */
static void srv_master_do_active_tasks(ulonglong counter_time)
@@ -1649,7 +1597,6 @@ void srv_master_callback(void*)
ut_a(srv_shutdown_state <= SRV_SHUTDOWN_INITIATED);
MONITOR_INC(MONITOR_MASTER_THREAD_SLEEP);
- ut_d(srv_master_do_disabled_loop());
if (!purge_state.m_running)
srv_wake_purge_thread_if_not_active();
ulonglong counter_time= microsecond_interval_timer();
diff --git a/storage/innobase/srv/srv0start.cc b/storage/innobase/srv/srv0start.cc
index 9a9fdeb7828..52eee800dae 100644
--- a/storage/innobase/srv/srv0start.cc
+++ b/storage/innobase/srv/srv0start.cc
@@ -813,7 +813,6 @@ srv_open_tmp_tablespace(bool create_new_db)
static void srv_shutdown_threads()
{
ut_ad(!srv_undo_sources);
- ut_d(srv_master_thread_enable());
srv_master_timer.reset();
srv_shutdown_state = SRV_SHUTDOWN_EXIT_THREADS;
@@ -1903,8 +1902,6 @@ void srv_shutdown_bg_undo_sources()
{
srv_shutdown_state = SRV_SHUTDOWN_INITIATED;
- ut_d(srv_master_thread_enable());
-
if (srv_undo_sources) {
ut_ad(!srv_read_only_mode);
fts_optimize_shutdown();