| Bug #19604 | CHECK TABLE with concurrent INSERT can reset auto_increment | ||
|---|---|---|---|
| Submitted: | 8 May 2006 12:18 | Modified: | 10 Jun 2006 17:49 |
| Reporter: | Ingo Strüwing | ||
| Status: | Closed | ||
| Category: | Server: General | Severity: | S1 (Critical) |
| Version: | 5.0.19 | OS: | Linux (Linux) |
| Assigned to: | Ingo Strüwing | Target Version: | |
[8 May 2006 12:18]
Ingo Strüwing
[11 May 2006 12:21]
Ingo Strüwing
My test script.
Attachment: bug19604-1.sh (application/x-sh, text), 14.43 KiB.
[11 May 2006 12: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 10: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 16: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 17:49]
Paul DuBois
Noted in 5.0.23, 5.1.12 changelogs.
