Bug #26138 | REPAIR TABLE with option USE_FRM erases all records in ARCHIVE table | ||
---|---|---|---|
Submitted: | 7 Feb 2007 8:52 | Modified: | 11 Apr 2007 1:45 |
Reporter: | Giuseppe Maxia | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Archive storage engine | Severity: | S2 (Serious) |
Version: | 5.0.32 | OS: | Linux (Linux) |
Assigned to: | Sergey Vojtovich | CPU Architecture: | Any |
Tags: | archive, data loss, repair table |
[7 Feb 2007 8:52]
Giuseppe Maxia
[28 Mar 2007 14:50]
Sergey Vojtovich
Stealing this one per discussion with Ingo.
[28 Mar 2007 15:18]
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/23169 ChangeSet@1.2486, 2007-03-29 00:13:59+05:00, svoj@mysql.com +3 -0 BUG#26138 - REPAIR TABLE with option USE_FRM erases all records in ARCHIVE table ARCHIVE table is truncated by REPAIR TABLE ... USE_FRM statement. This is fixed by reodering ARCHIVE engine extentions array, so now REPAIR TABLE ... USE_FRM works well with ARCHIVE tables.
[30 Mar 2007 8:57]
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/23399 ChangeSet@1.2426, 2007-03-30 13:00:21+05:00, svoj@mysql.com +6 -0 BUG#26138 - REPAIR TABLE with option USE_FRM erases all records in ARCHIVE table ARCHIVE table was truncated by REPAIR TABLE ... USE_FRM statement. The table handler returned its file name extensions in a wrong order. REPAIR TABLE believed it has to use the meta file to create a new table from it. With the fixed order, REPAIR TABLE does now use the data file to create a new table. So REPAIR TABLE ... USE_FRM works well with ARCHIVE engine now. This issue affects 5.0 only, since in 5.1 ARCHIVE engine stores meta information and data in the same file.
[30 Mar 2007 9:47]
Sergey Vojtovich
Was approved by Serg via e-mail.
[30 Mar 2007 10:48]
Ingo Strüwing
Approved by me too.
[8 Apr 2007 19:01]
Bugs System
Pushed into 5.1.18-beta
[8 Apr 2007 19:02]
Bugs System
Pushed into 5.0.40
[11 Apr 2007 1:45]
Paul DuBois
Noted in 5.0.40 changelog. REPAIR TABLE ... USE_FRM with an ARCHIVE table deleted all records from the table. No 5.1.x changelog entry; I assume the merge to 5.1 was a null merge because the report states that 5.1 was not affected by the problem.