Bug #47845 Delete without overlaped keys prevent insertion
| Submitted: | 6 Oct 2009 6:59 | Modified: | 24 Nov 2016 14:41 |
|---|---|---|---|
| Reporter: | Meiji KIMURA | Email Updates: | |
| Status: | No Feedback | Impact on me: | |
| Category: | MySQL Server: InnoDB storage engine | Severity: | S3 (Non-critical) |
| Version: | 5.0.x, 5.1.x, 5.4.x | OS: | Any |
| Assigned to: | CPU Architecture: | Any |
[6 Oct 2009 6:59]
Meiji KIMURA
[6 Oct 2009 14:15]
Mikhail Izioumtchenko
this looks like a feature related to gap locks, still assigning for a closer look.
[6 Oct 2009 14:25]
Heikki Tuuri
I do not know the exact setting in this bug report. Does EXPLAIN tell that MySQL is actually using the assumed access path to the table? It is quite normal for InnoDB record and gap locks to spill over the range defined in the WHERE clause. MySQL typically specifies the range to the engine like this: "fetch all records in an index where index_value >= 12345" It does NOT specify the last record in the range. When InnoDB fetches the first record that is NOT in the range, InnoDB has to lock that record and the gap before it. Also, only physical records in an index cvan carry lock information. If we have records 1 and 100, and the user wants to lock all records in the range [1, 50), then InnoDB locks the whole 'gap' between 1 and 100.
[25 Nov 2016 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.043 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.