mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
In the test, SET GLOBAL innodb_purge_rseg_truncate_frequency = 1 in order to ensure that everything is purged in the slow shutdown. This could be viewed as a flaw of the slow shutdown.
28 lines
732 B
Plaintext
28 lines
732 B
Plaintext
#
|
|
# MDEV-12288 Reset DB_TRX_ID when the history is removed,
|
|
# to speed up MVCC
|
|
#
|
|
SET GLOBAL innodb_purge_rseg_truncate_frequency = 1;
|
|
CREATE TABLE t1(a INT PRIMARY KEY, b INT NOT NULL)
|
|
ROW_FORMAT=REDUNDANT ENGINE=InnoDB;
|
|
INSERT INTO t1 VALUES(1,2),(3,4);
|
|
UPDATE t1 SET b=-3 WHERE a=3;
|
|
SET GLOBAL innodb_fast_shutdown=0;
|
|
Clustered index root page contents:
|
|
N_RECS=2; LEVEL=0
|
|
header=0x010000030087 (a=0x696e66696d756d00)
|
|
header=0x0000100900a6 (a=0x80000001,
|
|
DB_TRX_ID=0x000000000000,
|
|
DB_ROLL_PTR=0x80000000000000,
|
|
b=0x80000002)
|
|
header=0x000018090074 (a=0x80000003,
|
|
DB_TRX_ID=0x000000000000,
|
|
DB_ROLL_PTR=0x80000000000000,
|
|
b=0x7ffffffd)
|
|
header=0x030008030000 (a=0x73757072656d756d00)
|
|
SELECT * FROM t1;
|
|
a b
|
|
1 2
|
|
3 -3
|
|
DROP TABLE t1;
|