Bug #28806 | Running SHOW TABLE STATUS during high INSERT load crashes server | ||
---|---|---|---|
Submitted: | 31 May 2007 13:26 | Modified: | 16 Jun 2007 13:00 |
Reporter: | Victoria Reznichenko | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S1 (Critical) |
Version: | 5.1.18 | OS: | Any |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[31 May 2007 13:26]
Victoria Reznichenko
[7 Jun 2007 8:15]
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/28267 ChangeSet@1.2545, 2007-06-07 13:15:01+05:00, ramil@mysql.com +3 -0 Fux for bug #28806: Running SHOW TABLE STATUS during high INSERT load crashes server Problem: getting an autoincrement value for a partition table in the ::info() method we call the get_auto_increment() for all partitions. That may cause a problem for at least MyISAM tables that rely on some table state (in this particular case table->naxt_nuber_field is set to 0 in the mysql_insert() and we get a crash). Moreover, calling get_auto_increment() is superfluous there. Fix: use ::info(HA_STATUS_AUTO) calls to get autoincrement values for partitions instead of get_auto_increment() ones in the ha_partition::info().
[7 Jun 2007 10:50]
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/28281 ChangeSet@1.2545, 2007-06-07 15:50:13+05:00, ramil@mysql.com +3 -0 Fix for bug #28806: Running SHOW TABLE STATUS during high INSERT load crashes server Problem: getting an autoincrement value for a partition table in the ::info() method we call the get_auto_increment() for all partitions. That may cause a problem for at least MyISAM tables that rely on some table state (in this particular case table->naxt_nuber_field is set to 0 in the mysql_insert() and we get a crash). Moreover, calling get_auto_increment() is superfluous there. Fix: use ::info(HA_STATUS_AUTO) calls to get autoincrement values for partitions instead of get_auto_increment() ones in the ha_partition::info().
[16 Jun 2007 4:51]
Bugs System
Pushed into 5.1.20-beta
[16 Jun 2007 13:00]
Jon Stephens
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html Documented bugfix in 5.1.20 changelog.