Monty
2f3779d31c
Fixes for Aria transaction handling with lock tables
...
MDEV-10130 Assertion `share->in_trans == 0' failed in storage/maria/ma_close.c
MDEV-10378 Assertion `trn' failed in virtual int ha_maria::start_stmt
The problem was that maria_handler->trn was not properly reset
at commit/rollback and ha_maria::exernal_lock() could get confused
because.
There was some old code in ha_maria::implicit_commit() that tried
to take care of this, but it was not bullet proof.
Fixed by adding list of all tables that is part of the maria transaction to
TRN.
A nice side effect was of the fix is that loops in
ha_maria::implict_commit() got to be much simpler.
Other things:
- Fixed a bug in mysql_admin_table() where argument open_for_modify
was wrongly reset for the next table in the chain
- rollback admin command also in case of fatal error.
- Split _ma_set_trn_for_table() to three version to simplify code
and debugging.
- Several new asserts to detect the original problem (that file was
not properly removed from trn before calling ma_close())
2018-05-22 23:05:48 +03:00
..
2018-04-03 10:37:20 +04:00
2016-02-04 16:00:11 +02:00
2016-02-16 18:40:04 +04:00
2018-01-24 12:29:31 +02:00
2018-04-05 14:23:18 +04:00
2014-07-08 19:39:27 +02:00
2014-07-08 19:39:27 +02:00
2014-09-30 20:31:14 +03:00
2017-02-27 12:35:10 +01:00
2016-04-25 15:37:24 +03:00
2016-08-23 15:03:31 +03:00
2014-09-30 20:31:14 +03:00
2017-05-19 20:26:56 +02:00
2014-09-30 20:31:14 +03:00
2014-03-16 13:59:44 +01:00
2018-04-20 14:33:24 +02:00
2014-03-16 13:59:44 +01:00
2014-09-30 20:31:14 +03:00
2016-03-04 02:09:37 +02:00
2014-03-16 21:03:01 +01:00
2017-03-01 11:35:24 +04:00
2014-02-26 15:28:07 +01:00
2017-10-18 15:14:39 +02:00
2015-10-21 16:31:11 +03:00
2018-01-24 12:29:31 +02:00
2018-02-09 19:47:00 +04:00
2018-01-24 12:29:31 +02:00
2017-12-20 12:51:57 +02:00
2014-03-19 09:58:06 +01:00
2017-12-20 12:51:57 +02:00
2016-02-15 12:51:35 +01:00
2016-03-18 16:55:11 +01:00
2016-02-15 12:51:35 +01:00
2016-04-26 16:15:15 +04:00
2015-08-03 16:34:59 +02:00
2014-09-30 20:31:14 +03:00
2014-03-16 21:03:01 +01:00
2016-03-04 02:09:37 +02:00
2014-09-30 20:31:14 +03:00
2014-02-26 15:28:07 +01:00
2016-03-04 02:09:37 +02:00
2014-03-16 21:03:01 +01:00
2017-10-18 15:14:39 +02:00
2014-03-26 22:25:38 +01:00
2018-04-20 14:33:24 +02:00
2018-04-20 14:33:24 +02:00
2014-09-30 20:31:14 +03:00
2014-03-19 09:57:09 +01:00
2015-10-24 19:58:34 +02:00
2015-12-16 19:39:00 +04:00
2014-09-30 20:31:14 +03:00
2018-04-29 00:38:10 +02:00
2018-03-23 11:44:29 +01:00
2014-09-30 20:31:14 +03:00
2014-09-03 01:56:21 +04:00
2018-04-29 00:38:10 +02:00
2018-04-29 00:38:10 +02:00
2017-06-19 12:45:32 +04:00
2017-06-19 12:45:32 +04:00
2017-11-07 21:57:42 +04:00
2017-11-07 21:57:42 +04:00
2018-04-29 00:38:10 +02:00
2017-11-09 09:31:03 +01:00
2018-03-26 10:33:58 +04:00
2018-04-20 14:33:24 +02:00
2018-03-23 11:44:29 +01:00
2017-11-09 09:31:03 +01:00
2018-04-29 00:38:10 +02:00
2017-05-17 15:42:36 +03:00
2017-10-18 15:14:39 +02:00
2017-10-18 15:14:39 +02:00
2018-01-30 11:07:35 +04:00
2018-01-30 11:07:35 +04:00
2018-05-19 15:38:34 +02:00
2018-04-29 00:38:10 +02:00
2018-01-24 12:29:31 +02:00
2014-02-26 15:28:07 +01:00
2016-06-21 14:11:02 +02:00
2017-08-01 09:52:57 +02:00
2018-04-20 14:33:24 +02:00
2014-03-16 21:03:01 +01:00
2018-04-20 14:33:24 +02:00
2015-10-08 10:45:09 +03:00
2017-03-08 11:40:43 +02:00
2017-10-17 07:37:39 +02:00
2016-08-25 13:42:17 +05:30
2016-08-22 10:16:00 +03:00
2016-08-12 20:02:23 +03:00
2015-06-02 22:07:47 +02:00
2015-06-02 22:07:47 +02:00
2014-09-30 20:31:14 +03:00
2017-08-03 19:28:05 +03:00
2014-10-29 15:20:46 +03:00
2016-03-04 02:09:37 +02:00
2014-02-19 14:05:15 +04:00
2014-03-16 21:03:01 +01:00
2017-02-28 12:57:33 +00:00
2018-04-20 14:33:24 +02:00
2018-04-03 10:37:20 +04:00
2018-01-31 20:28:27 +01:00
2017-02-28 12:57:33 +00:00
2017-02-28 12:57:33 +00:00
2014-02-19 14:05:15 +04:00
2018-01-24 12:29:31 +02:00
2014-08-07 18:06:56 +02:00
2018-04-29 00:38:10 +02:00
2015-08-18 22:54:42 +03:00
2017-10-17 07:37:39 +02:00
2014-11-19 10:33:49 +04:00
2015-05-03 18:26:02 +02:00
2016-09-26 12:20:28 +02:00
2014-03-15 18:24:15 +01:00
2017-12-20 12:51:57 +02:00
2017-12-20 12:51:57 +02:00
2014-05-13 11:53:30 +02:00
2014-09-30 20:31:14 +03:00
2014-03-16 21:03:01 +01:00
2016-08-21 20:38:47 +03:00
2014-05-09 12:35:11 +02:00
2017-07-25 00:41:54 +03:00
2015-10-23 18:49:02 +03:00
2014-09-30 20:31:14 +03:00
2014-08-07 18:06:56 +02:00
2016-12-09 16:33:48 +01:00
2014-03-16 13:59:44 +01:00
2015-11-29 17:51:23 +02:00
2015-11-29 17:51:23 +02:00
2017-07-25 00:41:54 +03:00
2014-08-07 18:06:56 +02:00
2015-10-24 19:58:34 +02:00
2014-03-15 18:24:15 +01:00
2017-07-27 12:42:21 +02:00
2017-02-28 16:10:46 +01:00
2017-04-10 07:53:27 +02:00
2017-02-28 16:10:46 +01:00
2015-10-24 19:58:34 +02:00
2014-03-16 21:03:01 +01:00
2017-01-01 16:45:44 +05:30
2017-01-01 16:45:44 +05:30
2016-02-15 22:50:59 +01:00
2014-06-25 15:17:03 +02:00
2017-07-27 16:22:37 +03:00
2017-07-25 00:41:54 +03:00
2014-09-30 20:31:14 +03:00
2015-08-03 23:09:43 +03:00
2014-06-25 15:17:03 +02:00
2015-12-11 15:21:42 +01:00
2014-07-25 14:15:33 +02:00
2014-09-30 20:31:14 +03:00
2014-09-04 12:15:05 +04:00
2017-01-06 17:09:59 +02:00
2017-10-18 15:14:39 +02:00
2017-02-28 16:10:46 +01:00
2014-09-30 20:31:14 +03:00
2014-03-15 18:24:15 +01:00
2017-10-18 15:14:39 +02:00
2016-03-04 02:09:37 +02:00
2014-09-30 20:31:14 +03:00
2014-09-30 20:31:14 +03:00
2014-03-16 13:59:44 +01:00
2018-04-20 14:33:24 +02:00
2017-02-27 12:35:10 +01:00
2017-08-01 09:52:56 +02:00
2014-03-16 21:03:01 +01:00
2018-05-01 11:47:43 +02:00
2017-10-11 12:15:52 +03:00
2018-05-22 23:05:48 +03:00
2015-09-06 22:26:33 +02:00
2018-01-11 19:48:12 +05:30
2017-02-26 23:01:23 +04:00
2014-09-30 20:31:14 +03:00
2014-03-26 09:41:52 +01:00
2014-03-16 21:03:01 +01:00
2017-05-15 22:23:10 +02:00
2014-03-13 16:43:11 +02:00
2018-05-19 15:34:17 +02:00
2018-05-16 21:51:46 +03:00
2014-09-30 20:31:14 +03:00
2014-03-16 21:03:01 +01:00
2014-09-30 20:31:14 +03:00
2018-02-02 18:14:35 +01:00
2018-03-23 11:44:29 +01:00
2018-04-20 10:24:44 +02:00
2014-09-30 20:31:14 +03:00
2017-01-06 17:09:59 +02:00
2017-10-18 15:14:39 +02:00
2014-09-30 20:31:14 +03:00
2018-01-24 12:29:31 +02:00
2017-04-20 16:36:23 +02:00
2018-05-16 21:51:46 +03:00
2018-01-24 12:29:31 +02:00
2015-01-29 15:12:32 +02:00
2015-05-05 15:23:47 +02:00
2017-05-17 08:07:02 +03:00
2015-10-24 20:06:59 +02:00
2017-10-18 15:14:39 +02:00
2015-10-21 16:31:11 +03:00
2014-06-06 00:07:27 +02:00
2014-09-30 20:31:14 +03:00
2014-09-30 20:31:14 +03:00
2014-09-01 20:57:32 +04:00
2018-05-22 23:05:48 +03:00
2015-10-08 22:54:24 +02:00
2016-06-21 21:26:31 +04:00
2018-05-16 21:51:46 +03:00
2014-03-19 11:00:56 +02:00
2018-01-24 12:29:31 +02:00
2014-06-10 10:34:58 -07:00
2018-01-24 12:29:31 +02:00
2018-01-24 12:29:31 +02:00
2018-01-22 11:39:54 +01:00
2018-01-22 11:39:54 +01:00
2017-10-18 15:14:39 +02:00
2016-04-26 23:05:26 +02:00
2016-05-10 19:13:06 +04:00
2015-10-24 19:58:34 +02:00
2018-05-16 21:51:46 +03:00
2018-05-08 10:48:13 +02:00
2018-04-20 10:24:44 +02:00
2018-04-20 14:33:24 +02:00
2017-10-18 15:14:39 +02:00
2018-04-20 14:33:24 +02:00
2016-08-10 19:19:05 +02:00
2018-03-23 11:44:29 +01:00
2014-02-19 14:05:15 +04:00
2018-04-20 14:33:24 +02:00
2015-10-24 19:58:34 +02:00
2014-03-15 18:24:15 +01:00
2017-02-28 16:10:46 +01:00
2016-07-18 11:50:08 +04:00
2017-10-17 07:37:39 +02:00
2018-04-29 00:38:10 +02:00
2018-01-24 12:29:31 +02:00
2015-12-19 13:36:21 +01:00
2018-01-24 12:29:31 +02:00
2016-06-20 09:58:31 +03:00
2014-09-30 20:31:14 +03:00
2014-03-16 21:03:01 +01:00
2014-03-27 22:26:58 +01:00
2018-04-17 10:13:20 +02:00
2018-04-02 13:14:30 +03:00
2016-03-04 02:09:37 +02:00
2018-01-24 12:29:31 +02:00
2018-05-15 13:12:35 +03:00
2016-07-18 11:50:08 +04:00
2014-09-30 20:31:14 +03:00
2015-08-03 23:09:43 +03:00
2018-03-13 12:42:41 +04:00
2016-12-19 14:28:08 +04:00
2018-04-20 14:33:24 +02:00
2015-10-24 19:58:34 +02:00
2018-04-20 14:33:24 +02:00
2014-06-06 00:07:27 +02:00
2017-01-06 17:09:59 +02:00
2015-12-13 00:10:40 +01:00
2018-01-24 12:29:31 +02:00
2018-02-02 18:14:35 +01:00
2015-11-06 17:56:56 +01:00
2017-01-04 13:27:45 +01:00
2015-05-04 22:00:24 +02:00
2018-04-03 18:08:30 +03:00
2014-02-26 15:28:07 +01:00
2017-12-19 12:33:25 +02:00
2018-04-26 14:21:36 +03:00
2017-01-12 03:37:13 +02:00
2016-09-22 10:21:12 +04:00
2014-03-20 11:11:13 +04:00
2018-04-20 14:33:24 +02:00
2018-04-20 14:33:24 +02:00
2014-09-30 20:31:14 +03:00
2016-10-19 00:21:28 +02:00
2017-07-06 23:47:33 +02:00
2016-03-04 02:09:37 +02:00
2015-12-04 18:16:04 +01:00
2018-01-24 12:29:31 +02:00
2016-03-04 02:09:37 +02:00
2015-02-11 23:50:40 +01:00
2017-09-19 02:05:11 +03:00
2018-01-24 12:29:31 +02:00
2015-09-06 22:26:33 +02:00
2016-05-24 23:15:00 +02:00
2015-06-02 22:07:47 +02:00