阅读背景:

表的主键和唯一键的意外锁定

来源:互联网 

I've run into an innodb locking issue for transactions on a table with both a primary key and a separate unique index. It seems if a TX deletes a record using a unique key, and then re-inserts that same record, this will result in a next-key lock instead of the expected record lock (since the key is unique). See below for a test case as well as breakdown of what records I expect to have what locks: I've run into an innodb locking issue for trans




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: