Bug #38028 | assert hit in function open_table_def in file table.cc:559 | ||
---|---|---|---|
Submitted: | 10 Jul 2008 19:16 | Modified: | 29 Sep 2011 13:05 |
Reporter: | Zardosht Kasheff (OCA) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 5.1.23-rc, 5.1 bzr | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | open_table_def assert |
[10 Jul 2008 19:16]
Zardosht Kasheff
[13 Jul 2008 20:55]
Sveta Smirnova
Thank you for the report. Verified as described. To repeat: 1. Apply patch to current BZR tree: === modified file 'storage/myisam/ha_myisam.cc' --- storage/myisam/ha_myisam.cc 2008-03-28 10:14:27 +0000 +++ storage/myisam/ha_myisam.cc 2008-07-13 20:47:44 +0000 @@ -2047,7 +2047,7 @@ myisam_hton->db_type= DB_TYPE_MYISAM; myisam_hton->create= myisam_create_handler; myisam_hton->panic= myisam_panic; - myisam_hton->flags= HTON_CAN_RECREATE | HTON_SUPPORT_LOG_TABLES; + myisam_hton->flags= HTON_CAN_RECREATE | HTON_SUPPORT_LOG_TABLES | HTON_FLUSH_AFTER_RENAME; return 0; } 2. $cat >mysql-test/t/bug38028.test CREATE TABLE z1 ( a int(5) unsigned NOT NULL, longblob_col longblob not null ); ALTER TABLE z1 RENAME as z2, DROP longblob_col; ^C 3. $cd mysql-test 4. $./mysql-test-run.pl bug38028
[29 Sep 2011 13:05]
Paul DuBois
Noted in 5.6.4 changelog. For debug builds, an assertion could be raised for ALTER statements that performed a RENAME operation. This occurred for storage engine handlertons that exposed the HTON_FLUSH_AFTER_RENAME flag.