Bug #9354 | Next-key Locking doesn't allow the insert which does not produce phantom | ||
---|---|---|---|
Submitted: | 23 Mar 2005 11:53 | Modified: | 1 Jun 2005 15:57 |
Reporter: | Shuichi Tamagawa | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: InnoDB storage engine | Severity: | S2 (Serious) |
Version: | 4.1.10a | OS: | Windows (WinXP Pro) |
Assigned to: | Bugs System | CPU Architecture: | Any |
[23 Mar 2005 11:53]
Shuichi Tamagawa
[30 Mar 2005 9:28]
Heikki Tuuri
Hi! Assigning this to Jan Lindström. Note that the range that MySQL scans, and InnoDB locks, is not exactly the same as what you have in the WHERE condition. If the range is of type 'a' <= uniquecolum, Jan could check if we already have the optimization to lock only the RECORD, if the record with the column value 'a' exists in a CLUSTERED index. For unique secondary indexes, the optimization does not work, because they are internally not really unique on 'a' because of multiversioning. Jan could add that optimization for the clustered index, if we do not have it yet. Regards, Heikki
[13 Apr 2005 9:55]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/23949
[1 Jun 2005 15:57]
Heikki Tuuri
Fixed in 5.0.6.