mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
fe769c968e
Bug#38231: Innodb crash in lock_reset_all_on_table() on TRUNCATE + LOCK / UNLOCK branches/5.1: Fix Bug#38231 Innodb crash in lock_reset_all_on_table() on TRUNCATE + LOCK / UNLOCK In TRUNCATE TABLE and discard tablespace: do not remove table-level S and X locks and do not assert on such locks not being wait locks. Leave such locks alone. Approved by: Heikki (rb://14)
22 lines
382 B
Text
22 lines
382 B
Text
SET storage_engine=InnoDB;
|
|
INSERT INTO bug38231 VALUES (1), (10), (300);
|
|
SET autocommit=0;
|
|
SELECT * FROM bug38231 FOR UPDATE;
|
|
a
|
|
1
|
|
10
|
|
300
|
|
TRUNCATE TABLE bug38231;
|
|
COMMIT;
|
|
DROP TABLE bug38231;
|
|
SET storage_engine=InnoDB;
|
|
INSERT INTO bug38231 VALUES (1), (10), (300);
|
|
SET autocommit=0;
|
|
SELECT * FROM bug38231 FOR UPDATE;
|
|
a
|
|
1
|
|
10
|
|
300
|
|
TRUNCATE TABLE bug38231;
|
|
COMMIT;
|
|
DROP TABLE bug38231;
|