summaryrefslogtreecommitdiff
path: root/mysql-test/main/commit.test
diff options
context:
space:
mode:
Diffstat (limited to 'mysql-test/main/commit.test')
-rw-r--r--mysql-test/main/commit.test5
1 files changed, 4 insertions, 1 deletions
diff --git a/mysql-test/main/commit.test b/mysql-test/main/commit.test
index 892e8f8d80a..a0d4ddee152 100644
--- a/mysql-test/main/commit.test
+++ b/mysql-test/main/commit.test
@@ -285,8 +285,11 @@ COMMIT;
SET @@completion_type=1;
COMMIT AND NO CHAIN;
SET TRANSACTION ISOLATION LEVEL READ COMMITTED;
-START TRANSACTION;
TRUNCATE TABLE t1;
+# MDEV-515 takes X-lock on the table for the first insert.
+# So concurrent insert won't happen on the table
+INSERT INTO t1 VALUES(100);
+START TRANSACTION;
INSERT INTO t1 VALUES (1000);
SELECT * FROM t1;
--echo Should read '1000'