mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.11 into 11.0
This commit is contained in:
@@ -96,11 +96,8 @@ a b c
|
||||
DROP TABLE t1;
|
||||
CREATE TABLE t1 (a INT, b INT, c INT GENERATED ALWAYS AS(a+b));
|
||||
INSERT INTO t1(a, b) VALUES (1, 1), (2, 2), (3, 3), (4, 4);
|
||||
connection con1;
|
||||
# disable purge
|
||||
BEGIN;
|
||||
SELECT * FROM t0;
|
||||
a
|
||||
connect stop_purge,localhost,root,,;
|
||||
START TRANSACTION WITH CONSISTENT SNAPSHOT;
|
||||
connection default;
|
||||
DELETE FROM t1 WHERE a = 1;
|
||||
UPDATE t1 SET a = 2, b = 2 WHERE a = 5;
|
||||
@@ -109,10 +106,11 @@ SET DEBUG_SYNC= 'inplace_after_index_build SIGNAL uncommitted WAIT_FOR purged';
|
||||
ALTER TABLE t1 ADD INDEX idx (c), ALGORITHM=INPLACE, LOCK=NONE;
|
||||
connection con1;
|
||||
SET DEBUG_SYNC= 'now WAIT_FOR uncommitted';
|
||||
BEGIN;
|
||||
DELETE FROM t1 WHERE a = 3;
|
||||
UPDATE t1 SET a = 7, b = 7 WHERE a = 4;
|
||||
INSERT INTO t1(a, b) VALUES (8, 8);
|
||||
# enable purge
|
||||
disconnect stop_purge;
|
||||
COMMIT;
|
||||
# wait for purge to process the deleted/updated records.
|
||||
InnoDB 2 transactions not purged
|
||||
|
Reference in New Issue
Block a user