1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-16106 Record in index was not found on rollback, trying to insert: TUPLE

During rollback of temporary table logs, secondary index should delete mark
the index entry instead of removing it completely.
This commit is contained in:
Thirunarayanan Balathandayuthapani
2018-05-08 19:27:08 +05:30
parent 9bcd0f5fea
commit bd1d152d05
3 changed files with 27 additions and 8 deletions

View File

@ -638,3 +638,15 @@ t1 CREATE TEMPORARY TABLE `t1` (
`j` int(11) DEFAULT NULL,
PRIMARY KEY (`i`) KEY_BLOCK_SIZE=8
) ENGINE=InnoDB DEFAULT CHARSET=latin1 ROW_FORMAT=DYNAMIC
DROP TABLE t1;
CREATE TEMPORARY TABLE t1(f1 INT, KEY(f1)) ENGINE=InnoDB;
INSERT INTO t1 VALUES(NULL);
UPDATE t1 SET f1 = 0;
START TRANSACTION;
UPDATE t1 SET f1 = 4;
UPDATE t1 SET f1 = 0;
ROLLBACK;
SELECT * FROM t1;
f1
0
DROP TABLE t1;