mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-29613 Improve WITH_DBUG_TRACE=OFF
In commit 28325b0863
a compile-time option was introduced to disable the macros
DBUG_ENTER and DBUG_RETURN or DBUG_VOID_RETURN.
The parameter name WITH_DBUG_TRACE would hint that it also
covers DBUG_PRINT statements. Let us do that: WITH_DBUG_TRACE=OFF
shall disable DBUG_PRINT() as well.
A few InnoDB recovery tests used to check that some output from
DBUG_PRINT("ib_log", ...) is present. We can live without those checks.
Reviewed by: Vladislav Vaintroub
This commit is contained in:
@ -11,11 +11,8 @@ INSERT INTO t1 VALUES (1,2);
|
||||
ALTER TABLE t1 ADD PRIMARY KEY(a), LOCK=SHARED, ALGORITHM=INPLACE;
|
||||
ALTER TABLE t1 DROP INDEX b, ADD INDEX (b), LOCK=SHARED;
|
||||
# Kill the server
|
||||
# restart: --debug=d,ib_log
|
||||
FOUND 2 /scan \d+: multi-log rec MLOG_FILE_CREATE2 len \d+ page \d+:0/ in mysqld.1.err
|
||||
FOUND 3 /scan \d+: log rec MLOG_INDEX_LOAD/ in mysqld.1.err
|
||||
# restart
|
||||
CHECK TABLE t1;
|
||||
Table Op Msg_type Msg_text
|
||||
test.t1 check status OK
|
||||
# restart
|
||||
DROP TABLE t1;
|
||||
|
@ -9,10 +9,9 @@ CREATE TABLE t1(a INT PRIMARY KEY) ENGINE=InnoDB;
|
||||
SELECT * FROM t1;
|
||||
ERROR 42000: Unknown storage engine 'InnoDB'
|
||||
FOUND 1 /InnoDB: Tablespace 4294967280 was not found at .*, but there were no modifications either/ in mysqld.1.err
|
||||
# restart: --debug=d,innodb_log_abort_3,ib_log --innodb-log-files-in-group=1 --innodb-log-file-size=4M
|
||||
# restart: --debug=d,innodb_log_abort_3 --innodb-log-files-in-group=1 --innodb-log-file-size=4M
|
||||
SELECT * FROM t1;
|
||||
ERROR 42000: Unknown storage engine 'InnoDB'
|
||||
FOUND 1 /ib_log: MLOG_CHECKPOINT.* written/ in mysqld.1.err
|
||||
# restart
|
||||
# restart
|
||||
DROP TABLE t1;
|
||||
|
@ -26,22 +26,7 @@ ALTER TABLE t1 DROP INDEX b, ADD INDEX (b), LOCK=SHARED;
|
||||
--let CLEANUP_IF_CHECKPOINT=DROP TABLE t1;
|
||||
--source include/no_checkpoint_end.inc
|
||||
|
||||
--let $restart_parameters= --debug=d,ib_log
|
||||
--source include/start_mysqld.inc
|
||||
|
||||
let SEARCH_FILE = $MYSQLTEST_VARDIR/log/mysqld.1.err;
|
||||
let SEARCH_ABORT=NOT FOUND;
|
||||
# ensure that we have exactly 2 records there.
|
||||
let SEARCH_PATTERN=scan \d+: multi-log rec MLOG_FILE_CREATE2 len \d+ page \d+:0;
|
||||
--source include/search_pattern_in_file.inc
|
||||
# ensure that we have exactly 3 records there.
|
||||
let SEARCH_PATTERN=scan \d+: log rec MLOG_INDEX_LOAD;
|
||||
--source include/search_pattern_in_file.inc
|
||||
|
||||
CHECK TABLE t1;
|
||||
|
||||
# Remove the --debug=d,ib_log setting.
|
||||
--let $restart_parameters=
|
||||
--source include/restart_mysqld.inc
|
||||
|
||||
DROP TABLE t1;
|
||||
|
@ -35,12 +35,10 @@ SELECT * FROM t1;
|
||||
--let SEARCH_PATTERN = InnoDB: Tablespace 4294967280 was not found at .*, but there were no modifications either
|
||||
--source include/search_pattern_in_file.inc
|
||||
|
||||
--let $restart_parameters= --debug=d,innodb_log_abort_3,ib_log $resize
|
||||
--let $restart_parameters= --debug=d,innodb_log_abort_3 $resize
|
||||
--source include/restart_mysqld.inc
|
||||
--error ER_UNKNOWN_STORAGE_ENGINE
|
||||
SELECT * FROM t1;
|
||||
--let SEARCH_PATTERN= ib_log: MLOG_CHECKPOINT.* written
|
||||
--source include/search_pattern_in_file.inc
|
||||
|
||||
--let $restart_parameters=
|
||||
--source include/restart_mysqld.inc
|
||||
|
Reference in New Issue
Block a user