Bug #40216 | optimize table resets auto_increment value on archive tables | ||
---|---|---|---|
Submitted: | 21 Oct 2008 16:32 | Modified: | 29 Oct 2008 15:21 |
Reporter: | Mattias Jonsson | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Archive storage engine | Severity: | S2 (Serious) |
Version: | 5.1, 5.7.17 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[21 Oct 2008 16:32]
Mattias Jonsson
[21 Oct 2008 16:52]
MySQL Verification Team
Thank you for the bug report. Verified as described.
[30 Oct 2008 21:41]
Geoffroy Cogniaux
This bug is reported on version 5.1, but I verified it on version 6.0.6 too. I guess it happens because in the ha_archive::optimize function, auto_increment value is updated on closed 'share->archive_write' instead of the new opened azio_stream called 'writer'. ( I tested it and it works ) But I'm surprised to see that this value is first reseted and then updated each time a row is inserted in the new optimized table. I think auto_increment value should be copied only once from the old version of the table to the new optimized one, shouldn't it ? , even if ha_archive::optimize finished with a different (ie. less) row count . Best regards, Geoffroy.
[23 Jan 2017 4:27]
MySQL Verification Team
Bug #84598 marked as duplicate of this one