Bug #19604 CHECK TABLE with concurrent INSERT can reset auto_increment
| Submitted: | 8 May 2006 10:18 | Modified: | 10 Jun 2006 15:49 |
|---|---|---|---|
| Reporter: | Ingo Strüwing | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: General | Severity: | S1 (Critical) |
| Version: | 5.0.19 | OS: | Linux (Linux) |
| Assigned to: | Ingo Strüwing | CPU Architecture: | Any |
[8 May 2006 10:18]
Ingo Strüwing
[11 May 2006 10:21]
Ingo Strüwing
My test script.
Attachment: bug19604-1.sh (application/x-sh, text), 14.43 KiB.
[11 May 2006 10:24]
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/commits/6239
[31 May 2006 8:25]
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/commits/7076
[10 Jun 2006 14:45]
Ingo Strüwing
CHECK TABLE did temporarily clear the auto_increment value. It runs with a read lock, allowing other readers and conurrent INSERTs. The latter could grab the wrong value in this moment. CHECK TABLE does no longer modify the auto_increment value. Not even for a short moment. Pushed to 5.0.23 and 5.1.12.
[10 Jun 2006 15:49]
Paul DuBois
Noted in 5.0.23, 5.1.12 changelogs.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.057 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.