Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
2.7k views
in Technique[技术] by (71.8m points)

MySQL:关于 MDL 的读锁与写锁

image
Session A 与 Session B 均持有【MDL 读锁】,读锁间不互斥,故可同时读取表 T,由于 session A 持有的【MDL 读锁】尚未释放,致使 Session C 因无法获取【MDL 写锁】而阻塞,由于 Session D 无法获取【MDL 读锁】,致使 Session D 同样被阻塞

我的问题是,Session C 阻塞是因为无法获取【MDL 写锁】,那 Session D 请求【MDL 读锁】也不行也会被阻塞,这是什么机制呢?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神解答

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...