Fix rare deadlock when using read/write locks#16133
Conversation
|
I can't really follow what change this is making or what race it's trying to cover up, any chance you can elaborate? :) |
|
Whoops! Yes, basically: we have a If we try and drop two locks at the same time, we'll try and update the The fix here is to make sure that we "serialise" changes to the lock with a given name/key. We do this by taking a row level lock on |
reivilibre
left a comment
There was a problem hiding this comment.
not dead obvious (but mostly just because I didn't have a clue how this locking stuff was put together) but makes sense now.
Introduced in #15782