1
0
mirror of https://github.com/MariaDB/server.git synced 2025-05-28 13:01:41 +03:00
Sergey Vojtovich a82cc50958 BUG#51307 - widespread corruption with partitions and
insert...select

Queries following bulk insert into an empty MyISAM table
may break it. This was pure MyISAM problem.

When bulk insert into an empty table is complete, MyISAM
may want to enable indexes via repair by sort. If repair
by sort fails (e.g. insufficient buffer), MyISAM failover
to repair with key cache, requesting repair of data file.

Repair of data file performs data file substitution. This
means that current table instance will point to new data
file. Other cached table instances are still pointing to
an old, deleted data file.

This is fixed by not requesting repair of data file
during enable indexes.

Explicit REPAIR is not affected, since it flushes all
table instances.

mysql-test/r/myisam.result:
  A test case for BUG#51307.
mysql-test/t/myisam.test:
  A test case for BUG#51307.
storage/myisam/ha_myisam.cc:
  When enabling indexes do not attempt to repair data file.
2010-03-02 13:45:50 +04:00
..
2009-08-20 14:30:59 +02:00
2009-02-09 22:00:15 +01:00
2009-02-09 22:00:15 +01:00
2009-06-25 13:44:50 +05:00
2009-09-29 17:38:40 +02:00
2010-02-19 19:06:47 +00:00
2009-03-27 10:18:06 +08:00
2009-02-06 18:25:08 +01:00
2009-01-23 13:22:05 +01:00
2009-10-23 23:37:57 +05:00
2009-12-11 16:02:47 +02:00
2009-01-16 17:38:38 +02:00
2009-05-06 15:00:14 +05:30
2010-01-22 14:02:17 +04:00
2009-09-02 18:58:17 +02:00
2009-04-09 14:38:50 +05:00
2009-10-20 11:00:07 -07:00
2008-10-23 21:27:09 +02:00
2009-01-23 13:22:05 +01:00
2009-12-17 12:06:36 -08:00
2010-01-29 16:54:27 +02:00
2009-12-10 17:38:01 +02:00
2009-02-03 14:45:17 +01:00
2009-08-12 12:03:05 +02:00
2009-12-26 15:25:56 +04:00
2010-01-29 15:08:49 +04:00
2009-03-10 16:54:24 +01:00
2010-01-15 10:51:39 +02:00
2009-07-03 10:19:32 +02:00
2009-11-27 18:10:28 +02:00
2009-12-23 17:44:03 +04:00
2009-06-10 11:58:36 +03:00
2008-12-13 19:42:12 +00:00
2009-02-19 18:24:25 -05:00
2010-02-22 16:58:56 +00:00
2009-01-13 15:04:28 +01:00
2009-01-31 02:08:41 +01:00
2009-12-22 14:38:33 +04:00