Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

案例20的疑问 #29

Open
flysky569 opened this issue Dec 17, 2021 · 0 comments
Open

案例20的疑问 #29

flysky569 opened this issue Dec 17, 2021 · 0 comments

Comments

@flysky569
Copy link

案例20里,有分析,里面的第7步“事务一给 date加锁,和事务二冲突,导致死锁 (非聚簇索引加锁)”,假设真的是这样,由于是二级非唯一索引,那么这是申请的应该是next-key锁(至少是gap锁),而不应该是MySQL死锁日志里提示的:“index rank24h_date_8afc2781 of table business.rank24h trx id 121318802 lock_mode X locks rec but not gap waiting”。
求解答,我有一些初步的思路,但是很难确认,希望可以和你通过邮箱或微信交流,等有了交流成果后再更新到本git项目上。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant