mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
8c4df595b8
Skip rollback and other redo-log-generating tasks if srv_apply_log_only is set. Instead of assigning the debug variable recv_no_log_write = FALSE, assign it to srv_apply_log_only, so that any unwanted writes are caught.
29 lines
616 B
Text
29 lines
616 B
Text
call mtr.add_suppression("InnoDB: New log files created");
|
|
CREATE TABLE t(a INT UNSIGNED PRIMARY KEY) ENGINE INNODB;
|
|
INSERT INTO t VALUES(0);
|
|
COMMIT;
|
|
start transaction;
|
|
NOT FOUND /Rollback of trx with id/ in current_test
|
|
# expect NOT FOUND
|
|
NOT FOUND /Rollback of trx with id/ in current_test
|
|
# expect NOT FOUND
|
|
commit;
|
|
SELECT count(*) FROM t;
|
|
count(*)
|
|
201
|
|
# Restore and check results
|
|
# shutdown server
|
|
# remove datadir
|
|
# xtrabackup move back
|
|
# restart server
|
|
SELECT COUNT(*) FROM t;
|
|
COUNT(*)
|
|
1
|
|
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
|
|
SELECT COUNT(*) FROM t;
|
|
COUNT(*)
|
|
201
|
|
SELECT * FROM t;
|
|
a
|
|
0
|
|
DROP TABLE t;
|