mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-21360 restore debud_dbug through a session variable instead of '-d,..'
This commit is contained in:
@@ -12,7 +12,7 @@ CREATE TABLE `t` (
|
||||
INSERT INTO t VALUES (REPEAT('g', 16000), REPEAT('x', 16000), DEFAULT, "kk", 1);
|
||||
INSERT INTO t VALUES (REPEAT('a', 16000), REPEAT('b', 16000), DEFAULT, "mm", 2);
|
||||
CREATE INDEX idx ON t(c(100));
|
||||
SET global debug_dbug="+d,ib_purge_virtual_index_callback";
|
||||
SET global debug_dbug="d,ib_purge_virtual_index_callback";
|
||||
UPDATE t SET a = REPEAT('m', 16000) WHERE a like "aaa%";
|
||||
InnoDB 0 transactions not purged
|
||||
SET global debug_dbug=@old_dbug;
|
||||
@@ -27,7 +27,7 @@ i INT
|
||||
INSERT INTO t VALUES (REPEAT('g', 100), REPEAT('x', 100), DEFAULT, "kk", 1);
|
||||
INSERT INTO t VALUES (REPEAT('a', 100), REPEAT('b', 100), DEFAULT, "mm", 2);
|
||||
CREATE INDEX idx ON t(c(100));
|
||||
SET global debug_dbug="+d,ib_purge_virtual_index_callback";
|
||||
SET global debug_dbug="d,ib_purge_virtual_index_callback";
|
||||
UPDATE t SET a = REPEAT('m', 100) WHERE a like "aaa%";
|
||||
InnoDB 0 transactions not purged
|
||||
SET global debug_dbug=@old_dbug;
|
||||
@@ -48,7 +48,7 @@ insert into t1 values(3, 4, default);
|
||||
insert into t1 values(3, 12, default);
|
||||
insert into t1 values(4, 18, default);
|
||||
CREATE INDEX idx ON t1(x);
|
||||
SET global debug_dbug="+d,ib_purge_virtual_index_callback";
|
||||
SET global debug_dbug="d,ib_purge_virtual_index_callback";
|
||||
UPDATE t1 SET id = 10 WHERE id = 1;
|
||||
InnoDB 0 transactions not purged
|
||||
SET global debug_dbug=@old_dbug;
|
||||
@@ -138,7 +138,7 @@ DROP TABLE t0, t1;
|
||||
create table t (a blob, b blob, c blob as (concat(a,b)), h varchar(10), index (c(100)));
|
||||
insert t(a,b,h) values (repeat('g', 16000), repeat('x', 16000), "kk");
|
||||
insert t(a,b,h) values (repeat('a', 16000), repeat('b', 16000), "mm");
|
||||
set global debug_dbug="+d,ib_purge_virtual_index_callback";
|
||||
set global debug_dbug="d,ib_purge_virtual_index_callback";
|
||||
connect prevent_purge, localhost, root;
|
||||
start transaction with consistent snapshot;
|
||||
connection default;
|
||||
@@ -181,7 +181,7 @@ CREATE TABLE t1 (y YEAR, vy YEAR AS (y) VIRTUAL UNIQUE, pk INT PRIMARY KEY)
|
||||
ENGINE=InnoDB;
|
||||
INSERT INTO t1 (pk,y) VALUES (1,2022);
|
||||
CREATE TABLE t2(f1 INT NOT NULL, PRIMARY KEY(f1))ENGINE=InnoDB;
|
||||
SET GLOBAL debug_dbug = '+d,ib_purge_virtual_index_callback';
|
||||
SET GLOBAL debug_dbug = 'd,ib_purge_virtual_index_callback';
|
||||
BEGIN;
|
||||
INSERT INTO t2(f1) VALUES(1);
|
||||
connection prevent_purge;
|
||||
@@ -209,7 +209,7 @@ DROP TABLE t1, t2;
|
||||
# on table with virtual columns and indexes
|
||||
#
|
||||
SET @saved_dbug= @@GLOBAL.debug_dbug;
|
||||
set global debug_dbug= "+d,ib_purge_virtual_mdev_16222_1,ib_purge_virtual_mdev_16222_2";
|
||||
set global debug_dbug= "d,ib_purge_virtual_mdev_16222_1,ib_purge_virtual_mdev_16222_2";
|
||||
create table t1 (
|
||||
pk serial, vb tinyblob as (b) virtual, b tinyblob,
|
||||
primary key(pk), index (vb(64)))
|
||||
@@ -218,7 +218,7 @@ insert ignore into t1 (b) values ('foo');
|
||||
select * into outfile 'load.data' from t1;
|
||||
load data infile 'load.data' replace into table t1;
|
||||
set debug_sync= "now WAIT_FOR latch_released TIMEOUT 1";
|
||||
set global debug_dbug= "-d,ib_purge_virtual_mdev_16222_1";
|
||||
set global debug_dbug= @saved_dbug;
|
||||
drop table t1;
|
||||
set debug_sync= "now SIGNAL drop_started WAIT_FOR got_no_such_table TIMEOUT 1";
|
||||
create table t1 (
|
||||
@@ -254,7 +254,7 @@ SET GLOBAL innodb_debug_sync = "ib_open_after_dict_open "
|
||||
"SIGNAL purge_open "
|
||||
"WAIT_FOR select_open";
|
||||
SET @saved_dbug= @@GLOBAL.debug_dbug;
|
||||
set global debug_dbug= "+d,ib_purge_virtual_index_callback";
|
||||
set global debug_dbug= "d,ib_purge_virtual_index_callback";
|
||||
connect purge_waiter,localhost,root;
|
||||
SET debug_sync= "now WAIT_FOR before_row_allocated";
|
||||
connection default;
|
||||
|
Reference in New Issue
Block a user