mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-24818 Concurrent use of InnoDB table is impossible until the first transaction is finished
In MDEV-515, we enabled an optimization where an insert into an empty table will use table-level locking and undo logging. This may break applications that expect row-level locking. The SQL statements created by the mysqldump utility will include the following: SET unique_checks=0, foreign_key_checks=0; We will use these flags to enable the table-level locked and logged insert. Unless the parameters are set, INSERT will be executed in the old way, with row-level undo logging and implicit record locks.
This commit is contained in:
@@ -115,6 +115,7 @@ title VARCHAR(200),
|
||||
body TEXT,
|
||||
FULLTEXT (title, body) WITH PARSER simple_parser
|
||||
) ENGINE=InnoDB;
|
||||
SET unique_checks=0, foreign_key_checks=0;
|
||||
BEGIN;
|
||||
INSERT INTO articles (title, body) VALUES
|
||||
('MySQL Tutorial','DBMS stands for MySQL DataBase ...'),
|
||||
|
Reference in New Issue
Block a user