1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00
Files
mariadb/mysql-test/t
Satya B 24146bb2ab BUG#40827 - Killing insert-select to MyISAM can cause table corruption
Killing insert-select statement on MyISAM corrupts the table.
                  
Killing the insert-select statement corrupts the MyISAM table only
when the destination table is empty and when it has indexes. When 
we bulk insert huge data and if the destination table is empty we 
disable the indexes for fast inserts, data is then inserted and 
indexes are re-enabled after bulk_insert operation
                  
Killing the query, aborts the repair table operation during enable
indexes phase leading to table corruption.
                
We now truncate the table when we detect that enable indexes is
killed for bulk insert query.As we have an empty table before the 
operation, we can fix by truncating the table.

mysql-test/r/myisam.result:
  Result file for BUG#40827
mysql-test/t/myisam.test:
  Testcase for BUG#40827
storage/myisam/ha_myisam.cc:
  Fixed end_bulk_insert() method to truncate the table when we detect enable 
  index operation is killed.
2009-04-16 17:02:56 +05:30
..
2009-02-09 22:00:15 +01:00
2008-07-18 15:00:45 +03:00
2009-02-09 22:00:15 +01:00
2009-01-23 13:22:05 +01:00
2009-01-23 13:22:05 +01:00
2008-12-23 18:21:01 +04:00
2008-11-21 17:32:45 +04:00
2009-03-04 13:45:49 +01:00
2009-03-11 14:29:59 +02:00
2009-02-23 14:42:31 +02:00
2009-03-27 10:18:06 +08:00
2008-09-05 13:36:02 +05:00
2009-02-06 18:25:08 +01:00
2009-01-23 13:22:05 +01:00
2009-02-15 12:47:04 +03:00
2009-02-09 22:00:15 +01:00
2009-02-26 18:17:06 +01:00
2009-01-16 17:38:38 +02:00
2009-04-09 14:38:50 +05:00
2008-10-06 08:37:52 -04:00
2008-10-23 21:27:09 +02:00
2009-01-23 13:22:05 +01:00
2009-02-09 22:00:15 +01:00
2009-03-24 23:52:08 +03:00
2009-01-23 13:22:05 +01:00
2009-02-03 14:45:17 +01:00
2009-02-03 14:45:17 +01:00
2009-02-09 22:00:15 +01:00
2009-01-23 13:22:05 +01:00
2008-07-03 23:41:22 +04:00
2009-02-25 16:53:49 +01:00
2008-05-30 11:12:07 +02:00
2009-03-10 16:54:24 +01:00
2008-10-23 21:27:09 +02:00
2008-07-07 11:43:56 +03:00
2009-02-09 22:00:15 +01:00
2008-12-13 19:42:12 +00:00
2009-02-19 18:24:25 -05:00
2009-03-27 13:55:14 +01:00
2008-12-09 17:31:22 +04:00
2008-05-30 11:12:07 +02:00
2009-01-13 15:04:28 +01:00
2008-11-17 19:43:10 +04:00
2009-01-31 02:08:41 +01:00
2009-03-27 15:59:09 +03:00
2008-08-04 07:04:47 +02:00
2009-02-12 11:52:01 +02:00