You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
案例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项目上。
The text was updated successfully, but these errors were encountered:
案例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项目上。
The text was updated successfully, but these errors were encountered: