Monty
6aa9a552c2
MDEV-24576 Atomic CREATE TABLE
...
There are a few different cases to consider
Logging of CREATE TABLE and CREATE TABLE ... LIKE
- If REPLACE is used and there was an existing table, DDL log the drop of
the table.
- If discovery of table is to be done
- DDL LOG create table
else
- DDL log create table (with engine type)
- create the table
- If table was created
- Log entry to binary log with xid
- Mark DDL log completed
Crash recovery:
- If query was in binary log do nothing and exit
- If discoverted table
- Delete the .frm file
-else
- Drop created table and frm file
- If table was dropped, write a DROP TABLE statement in binary log
CREATE TABLE ... SELECT required a little more work as when one is using
statement logging the query is written to the binary log before commit is
done.
This was fixed by adding a DROP TABLE to the binary log during crash
recovery if the ddl log entry was not closed. In this case the binary log
will contain:
CREATE TABLE xxx ... SELECT ....
DROP TABLE xxx;
Other things:
- Added debug_crash_here() functionality to Aria to be able to test
crash in create table between the creation of the .MAI and the .MAD files.
2021-05-19 22:54:13 +02:00
..
2020-06-18 23:12:54 +02:00
2020-03-16 10:10:33 +02:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2021-02-03 02:22:47 +02:00
2018-11-20 01:50:59 +02:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2017-08-14 19:45:59 +02:00
2017-08-14 19:45:59 +02:00
2017-04-05 15:02:56 +04:00
2017-10-30 07:37:25 +04:00
2020-03-18 12:50:17 +04:00
2019-09-03 13:17:32 +03:00
2020-03-17 19:08:28 +04:00
2016-05-20 09:46:03 +02:00
2020-03-17 19:08:28 +04:00
2020-03-17 19:08:28 +04:00
2020-03-17 11:09:19 +04:00
2021-05-17 12:48:37 +05:30
2021-05-10 09:36:40 +05:30
2020-03-17 19:08:28 +04:00
2020-03-17 11:09:19 +04:00
2020-03-18 12:50:17 +04:00
2019-09-11 15:09:35 +05:30
2020-03-17 19:08:28 +04:00
2019-09-03 13:17:32 +03:00
2020-03-17 19:08:28 +04:00
2017-04-05 15:02:56 +04:00
2019-09-03 13:17:32 +03:00
2016-03-31 10:11:16 +04:00
2019-09-03 13:17:32 +03:00
2016-03-31 10:11:16 +04:00
2019-09-03 13:17:32 +03:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2019-09-03 13:17:32 +03:00
2016-03-31 10:11:16 +04:00
2019-09-03 13:17:32 +03:00
2019-09-01 19:17:35 +03:00
2019-09-03 13:17:32 +03:00
2016-03-31 10:11:16 +04:00
2019-09-03 13:17:32 +03:00
2019-09-01 19:17:35 +03:00
2019-09-03 13:17:32 +03:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2020-03-17 14:27:52 +04:00
2020-01-21 11:22:47 +01:00
2017-04-05 15:02:56 +04:00
2019-12-21 10:34:02 +01:00
2017-04-05 15:02:56 +04:00
2017-05-24 11:59:04 +02:00
2017-04-05 15:02:56 +04:00
2019-09-11 08:48:00 +03:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2020-03-17 14:27:52 +04:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2021-05-10 09:36:40 +05:30
2020-03-17 19:08:28 +04:00
2020-03-17 14:27:52 +04:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2019-12-02 12:41:13 +02:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2019-09-01 19:17:35 +03:00
2016-03-31 10:11:16 +04:00
2020-03-18 17:14:07 +04:00
2020-03-18 17:14:07 +04:00
2020-03-18 20:16:34 +04:00
2020-03-18 17:14:07 +04:00
2020-03-18 17:14:07 +04:00
2020-03-18 20:16:34 +04:00
2020-03-18 17:14:07 +04:00
2020-03-18 17:14:07 +04:00
2019-09-01 19:17:35 +03:00
2017-09-26 00:13:04 +03:00
2017-09-26 00:13:04 +03:00
2017-04-05 15:02:56 +04:00
2021-01-25 18:41:27 +02:00
2019-12-02 12:41:13 +02:00
2020-03-17 14:27:52 +04:00
2019-12-02 12:41:13 +02:00
2020-03-18 07:11:18 +04:00
2019-09-01 19:17:35 +03:00
2017-03-03 17:08:06 +02:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2018-02-22 15:50:50 +11:00
2018-02-22 15:50:50 +11:00
2016-09-02 13:22:28 +03:00
2017-11-05 20:34:03 +02:00
2017-11-07 23:02:39 +02:00
2020-02-12 14:45:21 +02:00
2016-12-08 11:55:35 +11:00
2020-11-11 11:15:11 +02:00
2017-11-05 20:34:03 +02:00
2017-11-07 23:02:39 +02:00
2016-09-02 13:22:28 +03:00
2019-12-10 17:01:36 +02:00
2016-09-02 13:22:28 +03:00
2018-04-29 09:41:42 +03:00
2019-09-09 18:18:52 +03:00
2021-03-11 12:46:18 +02:00
2020-11-11 11:15:11 +02:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2017-04-24 15:09:18 +03:00
2018-03-07 17:49:42 +02:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2018-04-11 05:39:36 +03:00
2021-05-19 22:54:13 +02:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2018-04-29 09:41:42 +03:00
2018-04-29 09:41:42 +03:00
2016-09-02 13:22:28 +03:00
2020-11-04 16:55:36 +02:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2018-11-06 08:41:48 +02:00
2019-05-08 12:49:08 +05:30
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2020-03-30 14:50:23 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2019-09-01 19:17:35 +03:00
2020-10-15 17:04:56 +03:00
2019-09-01 19:17:35 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2017-04-26 23:03:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-23 08:33:38 +10:00
2017-01-06 14:52:35 +02:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2019-09-01 19:17:35 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2017-01-06 14:42:28 +02:00
2018-05-15 23:01:18 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2019-05-23 10:25:12 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2017-06-21 13:44:16 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2016-09-02 13:22:28 +03:00
2019-10-28 17:11:10 +02:00
2016-09-02 13:22:28 +03:00
2019-09-01 19:17:35 +03:00
2016-09-02 13:22:28 +03:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2017-04-05 15:02:56 +04:00
2020-03-03 13:12:43 +02:00
2020-03-17 19:08:28 +04:00
2020-03-17 19:08:28 +04:00
2016-03-31 10:11:16 +04:00
2020-03-17 19:08:28 +04:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2017-04-07 09:55:54 +02:00
2017-04-07 09:55:54 +02:00
2017-04-07 09:55:54 +02:00
2016-03-31 10:11:16 +04:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2017-08-24 01:05:51 +02:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2020-03-18 13:27:38 +04:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2017-04-05 15:02:56 +04:00
2020-03-17 19:08:28 +04:00
2017-04-05 15:02:56 +04:00
2020-03-17 19:08:28 +04:00
2017-04-05 15:02:56 +04:00
2020-03-17 19:08:28 +04:00
2019-09-03 13:17:32 +03:00
2020-03-17 14:27:52 +04:00
2019-09-03 13:17:32 +03:00
2020-03-17 14:27:52 +04:00
2019-05-11 22:19:05 +03:00
2019-09-01 19:17:35 +03:00
2016-03-31 10:11:16 +04:00
2020-03-17 14:27:52 +04:00
2018-04-12 12:41:19 +03:00
2019-03-12 13:10:49 +01:00
2017-04-05 15:02:56 +04:00
2019-09-01 19:17:35 +03:00
2020-12-10 08:45:20 +01:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2018-06-20 17:14:04 +04:00
2018-06-20 17:14:04 +04:00
2016-03-31 10:11:16 +04:00
2019-09-01 19:17:35 +03:00
2019-09-01 19:17:35 +03:00
2017-04-05 15:02:56 +04:00
2019-04-25 16:05:20 +03:00
2017-04-05 15:02:56 +04:00
2018-05-07 14:58:11 +05:30
2021-05-19 06:48:36 +02:00
2016-03-31 10:11:16 +04:00
2020-07-12 20:03:32 +05:30
2019-09-01 19:17:35 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 22:19:05 +03:00
2019-05-11 22:19:05 +03:00
2020-03-18 20:16:34 +04:00
2020-03-17 14:27:52 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2020-03-18 07:11:18 +04:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2020-03-17 12:44:06 +04:00
2019-09-01 19:17:35 +03:00
2017-04-05 15:02:56 +04:00
2020-03-18 11:57:07 +04:00
2020-03-18 11:57:07 +04:00
2020-10-23 12:20:17 +04:00
2020-03-18 07:11:18 +04:00
2016-12-07 14:42:08 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2016-12-07 14:42:08 +04:00
2020-03-18 07:11:18 +04:00
2019-08-05 16:03:33 +04:00
2020-03-18 07:11:18 +04:00
2016-12-07 14:42:08 +04:00
2020-03-18 07:11:18 +04:00
2016-12-07 14:42:08 +04:00
2020-03-18 07:11:18 +04:00
2020-10-22 07:16:29 +05:30
2017-12-18 13:43:37 +02:00
2020-03-18 10:36:06 +04:00
2017-12-18 13:43:36 +02:00
2020-03-18 10:36:06 +04:00
2017-12-18 13:43:36 +02:00
2020-03-18 10:36:06 +04:00
2017-12-18 13:43:36 +02:00
2020-03-18 10:36:06 +04:00
2017-12-18 13:43:36 +02:00
2020-03-18 10:36:06 +04:00
2020-03-18 10:36:06 +04:00
2017-12-18 13:43:36 +02:00
2020-03-18 10:36:06 +04:00
2020-03-18 10:36:06 +04:00
2017-12-18 13:43:36 +02:00
2020-03-18 10:36:06 +04:00
2016-03-31 10:11:16 +04:00
2020-03-17 14:27:52 +04:00
2017-02-13 17:29:32 -05:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2018-05-12 10:16:45 +02:00
2016-08-29 20:28:06 +03:00
2020-03-18 20:16:34 +04:00
2020-10-30 11:15:30 +02:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2017-04-05 15:02:56 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2017-12-03 13:58:35 +02:00
2017-12-03 13:58:35 +02:00
2017-12-03 13:58:35 +02:00
2020-03-18 07:11:18 +04:00
2020-03-18 07:11:18 +04:00
2017-04-05 15:02:56 +04:00
2016-03-23 14:36:59 +02:00
2016-03-31 10:11:16 +04:00
2020-03-17 14:27:52 +04:00
2017-04-05 15:02:56 +04:00
2019-09-01 19:17:35 +03:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2019-03-15 21:00:41 +01:00
2020-03-17 11:09:19 +04:00
2016-03-31 10:11:16 +04:00
2018-11-06 08:41:48 +02:00
2018-11-26 08:10:47 +04:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2017-02-10 06:30:42 -05:00
2019-09-03 13:17:32 +03:00
2020-03-17 19:08:28 +04:00
2017-04-05 15:02:56 +04:00
2020-03-18 11:57:07 +04:00
2020-03-18 11:57:07 +04:00
2020-03-18 11:57:07 +04:00
2019-09-01 19:17:35 +03:00
2019-09-04 09:30:43 +02:00
2018-03-26 17:53:17 +03:00
2019-10-17 17:08:58 +03:00
2019-10-14 10:29:30 +02:00
2019-10-14 10:29:30 +02:00
2019-10-14 10:29:30 +02:00
2017-04-18 11:47:58 +10:00
2019-09-03 13:17:32 +03:00
2020-08-10 11:58:56 +02:00
2017-11-17 21:40:20 +00:00
2018-08-12 00:13:19 +01:00
2016-03-22 23:44:52 +02:00
2016-03-23 15:11:30 +02:00
2016-10-05 01:11:08 +03:00
2020-03-17 14:27:52 +04:00
2020-03-17 14:27:52 +04:00
2020-03-17 14:27:52 +04:00
2020-05-25 14:54:11 +02:00
2020-05-25 14:54:11 +02:00
2018-10-12 08:22:10 +02:00
2019-05-31 15:04:11 +02:00
2020-03-17 14:27:52 +04:00
2021-04-20 12:30:09 +03:00
2016-03-31 10:11:16 +04:00
2019-12-02 12:41:13 +02:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2017-06-30 22:31:37 +03:00
2019-02-05 01:34:17 +01:00
2019-04-24 16:06:54 +02:00
2017-04-05 15:02:56 +04:00
2016-03-31 10:11:16 +04:00
2016-03-31 10:11:16 +04:00
2019-09-01 19:17:35 +03:00
2016-03-22 00:09:04 +04:00
2020-06-18 23:12:54 +02:00
2020-10-05 10:34:01 +03:00
2019-02-13 18:47:27 +01:00
2016-12-14 09:30:43 +05:30
2016-08-25 21:28:26 -04:00
2016-06-27 17:56:59 -04:00
2021-04-20 08:24:14 +03:00
2019-01-26 01:15:44 +01:00
2018-03-23 00:55:20 +01:00