51

从源码分析 MySQL 死锁问题入门

 4 years ago
source link: https://juejin.im/post/5ce287326fb9a07ea8039d70
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
这篇文章主要讲的是如何通过调试 MySQL 源码,知道一条 SQL 真正会拿哪些锁,不再抓虾,瞎猜或者何登成大神没写过的场景就不知道如何处理了 通过好多个深夜艰难的单步调试,终于找到了一个理想的断点,可以看到大部分获取锁的过程 代码在lock0lock.c的s

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK