How deliberately cause gap lock deadlock in MySQL?

时间:2019-02-09 09:34:02

标签: mysql locking innodb

I need to find a way how to prove gap lock with insertion only using two separate transactions.

I have tried this example to simulate the gap lock deadlock but it doesn't show any deadlock :

http://thushw.blogspot.com/2010/11/mysql-deadlocks-with-concurrent-inserts.html

Please help how to deliberately cause a deadlock using insertion only with unique values from different transactions.

Thanks in advance.

0 个答案:

没有答案