1
0
mirror of https://github.com/MariaDB/server.git synced 2025-09-03 20:43:11 +03:00
Files
mariadb/mysql-test/r
Sergei Golubchik 69abd43703 MDEV-17070 Table corruption or Assertion table->file->stats.records > 0 || error' or Assertion !is_set() || (m_status == DA_OK_BULK && is_bulk_op())' failed upon actions on temporary table
This was caused by a combination of factors:
* MyISAM/Aria temporary tables historically never saved the state
  to disk (MYI/MAI), because the state never needed to persist
* certain ALTER TABLE operations modify the original TABLE structure
  and if they fail, the original table has to be reopened to
  revert all changes (m_needs_reopen=1)

as a result, when ALTER fails and MyISAM/Aria temp table gets reopened,
it reads the stale state from the disk.

As a fix, MyISAM/Aria tables now *always* write the state to disk
on close, *unless* HA_EXTRA_PREPARE_FOR_DROP was done first. And
the server now always does HA_EXTRA_PREPARE_FOR_DROP before dropping
a temporary table.
2019-03-12 09:51:42 +01:00
..
2018-11-15 19:21:40 +01:00
2017-02-10 06:30:42 -05:00
2019-01-24 14:43:29 +02:00
2018-09-10 16:47:44 +04:00
2018-11-06 08:41:48 +02:00
2018-08-02 08:19:57 +03:00
2017-09-17 11:05:33 +03:00
2017-02-10 06:30:42 -05:00
2018-08-02 08:19:57 +03:00
2016-12-29 13:23:18 +01:00
2018-02-08 13:53:21 +02:00
2017-10-24 14:53:18 +02:00
2017-05-09 13:24:52 +02:00
2016-12-29 13:23:18 +01:00
2017-02-10 06:30:42 -05:00
2018-11-06 08:41:48 +02:00
2017-06-16 09:50:57 -07:00
2017-10-24 14:53:18 +02:00
2018-08-21 15:20:34 +03:00
2017-09-18 10:12:23 +02:00
2019-02-02 11:40:02 +02:00
2018-04-10 17:43:18 +03:00
2018-12-21 09:43:35 +02:00
2018-06-21 23:47:39 +02:00
2018-11-06 08:41:48 +02:00
2017-02-10 06:30:42 -05:00
2018-08-02 08:19:57 +03:00
2018-08-02 08:19:57 +03:00
2018-08-02 08:19:57 +03:00
2018-06-21 23:47:39 +02:00
2019-03-04 16:46:58 +02:00
2017-09-18 10:12:23 +02:00
2018-11-06 08:41:48 +02:00
2018-11-06 08:41:48 +02:00
2019-03-04 16:46:58 +02:00
2017-02-10 06:30:42 -05:00
2018-11-06 08:41:48 +02:00
2017-04-01 14:15:18 +03:00
2018-04-10 17:43:18 +03:00
2017-06-19 16:46:34 +03:00
2017-07-05 17:15:57 +02:00
2018-05-19 22:05:55 +02:00
2019-02-06 22:03:02 +01:00
2017-02-10 06:30:42 -05:00
2019-01-03 09:57:02 +01:00
2018-06-10 17:16:27 +03:00
2017-07-05 19:08:55 +02:00
2017-04-01 14:15:18 +03:00
2018-12-12 12:13:43 +02:00
2018-04-07 17:11:22 +03:00
2017-01-05 10:48:03 +02:00
2016-12-29 13:23:18 +01:00
2018-12-30 18:30:29 +01:00
2018-08-02 08:19:57 +03:00
2019-02-03 17:22:05 +02:00
2019-02-03 17:22:05 +02:00
2017-09-18 10:12:23 +02:00
2017-02-10 06:30:42 -05:00
2018-08-02 08:19:57 +03:00
2018-04-24 09:39:45 +03:00
2018-05-10 13:01:42 +02:00
2019-03-04 16:46:58 +02:00
2019-03-01 12:41:05 -05:00
2019-03-01 12:41:05 -05:00
2019-03-01 12:41:05 -05:00
2018-12-07 13:41:10 +02:00
2018-06-26 18:16:49 +03:00
2019-02-03 17:22:05 +02:00
2017-06-08 12:45:08 +03:00
2019-02-03 17:22:05 +02:00
2018-08-02 08:19:57 +03:00
2017-09-19 12:43:02 +03:00
2018-11-06 08:41:48 +02:00
2019-01-17 11:24:38 +02:00
2017-10-02 11:16:53 +03:00
2018-04-10 17:43:18 +03:00
2019-01-17 11:24:38 +02:00
2017-02-09 19:34:01 -08:00