mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix build without either ENABLED_DEBUG_SYNC or DBUG_OFF
There are separate flags DBUG_OFF for disabling the DBUG facility and ENABLED_DEBUG_SYNC for enabling the DEBUG_SYNC facility. Let us allow debug builds without DEBUG_SYNC. Note: For CMAKE_BUILD_TYPE=Debug, CMakeLists.txt will continue to define ENABLED_DEBUG_SYNC.
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
--source include/not_embedded.inc
|
||||
--source include/have_innodb.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_debug_sync.inc
|
||||
--source include/not_crashrep.inc
|
||||
|
||||
--disable_query_log
|
||||
|
@ -1,5 +1,6 @@
|
||||
--source include/have_innodb.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_debug_sync.inc
|
||||
|
||||
create table t1(f1 char(10), f2 char(10) not null, f3 int not null,
|
||||
f4 int not null, primary key(f3))engine=innodb;
|
||||
|
@ -1,5 +1,6 @@
|
||||
--source include/have_innodb.inc
|
||||
--source include/have_debug.inc
|
||||
--source include/have_debug_sync.inc
|
||||
--source include/not_embedded.inc
|
||||
|
||||
# Two parallel connection with autoinc column after restart.
|
||||
|
@ -1,6 +1,7 @@
|
||||
--source include/maybe_debug.inc
|
||||
--source include/innodb_page_size_small.inc
|
||||
|
||||
let $have_debug_sync=`select count(*) = 1 from information_schema.session_variables where variable_name = 'debug_sync' and variable_value like 'on %'`;
|
||||
|
||||
--echo #
|
||||
--echo # Bug #16963396 INNODB: USE OF LARGE EXTERNALLY-STORED FIELDS MAKES
|
||||
--echo # CRASH RECOVERY LOSE DATA
|
||||
@ -94,7 +95,7 @@ select f1, right(f2, 20), right(f3, 20) from t2;
|
||||
update t2 set f3 = '&';
|
||||
select f1, right(f2, 20), right(f3, 20) from t2;
|
||||
|
||||
if ($have_debug) {
|
||||
if ($have_debug_sync) {
|
||||
--disable_query_log
|
||||
set DEBUG_SYNC='blob_rollback_middle SIGNAL stuck WAIT_FOR ever';
|
||||
send ROLLBACK;
|
||||
@ -102,7 +103,7 @@ send ROLLBACK;
|
||||
}
|
||||
|
||||
connection default;
|
||||
if ($have_debug) {
|
||||
if ($have_debug_sync) {
|
||||
--disable_query_log
|
||||
SET DEBUG_SYNC = 'now WAIT_FOR stuck';
|
||||
--enable_query_log
|
||||
|
Reference in New Issue
Block a user