1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00
Files
mariadb/sql
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-05 14:23:18 +04:00
2014-03-16 13:59:44 +01:00
2014-03-16 13:59:44 +01:00
2014-03-16 21:03:01 +01:00
2014-02-26 15:28:07 +01:00
2017-10-18 15:14:39 +02:00
2014-03-19 09:58:06 +01:00
2014-03-16 21:03:01 +01:00
2014-02-26 15:28:07 +01: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
2018-04-29 00:38:10 +02:00
2018-03-23 11:44:29 +01:00
2018-04-29 00:38:10 +02:00
2018-04-29 00:38:10 +02:00
2018-04-29 00:38:10 +02:00
2018-04-20 14:33:24 +02:00
2018-03-23 11:44:29 +01:00
2018-04-29 00:38:10 +02:00
2017-10-18 15:14:39 +02:00
2017-10-18 15:14:39 +02:00
2018-05-19 15:38:34 +02:00
2018-04-29 00:38:10 +02:00
2014-02-26 15:28:07 +01:00
2016-06-21 14:11:02 +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
2017-03-08 11:40:43 +02:00
2015-06-02 22:07:47 +02:00
2015-06-02 22:07:47 +02:00
2014-10-29 15:20:46 +03:00
2014-03-16 21:03:01 +01:00
2018-04-20 14:33:24 +02:00
2014-08-07 18:06:56 +02:00
2018-04-29 00:38:10 +02:00
2014-03-15 18:24:15 +01:00
2014-03-16 21:03:01 +01:00
2014-05-09 12:35:11 +02:00
2015-10-23 18:49:02 +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
2014-08-07 18:06:56 +02:00
2014-03-15 18:24:15 +01:00
2014-03-16 21:03:01 +01:00
2016-02-15 22:50:59 +01:00
2017-07-27 16:22:37 +03:00
2014-09-04 12:15:05 +04:00
2017-10-18 15:14:39 +02:00
2014-03-15 18:24:15 +01:00
2017-10-18 15:14:39 +02:00
2014-03-16 13:59:44 +01:00
2018-04-20 14:33:24 +02:00
2014-03-16 21:03:01 +01:00
2018-05-01 11:47:43 +02:00
2014-03-16 21:03:01 +01:00
2014-03-13 16:43:11 +02:00
2014-03-16 21:03:01 +01:00
2018-03-23 11:44:29 +01:00
2017-10-18 15:14:39 +02:00
2015-05-05 15:23:47 +02:00
2015-10-24 20:06:59 +02:00
2017-10-18 15:14:39 +02:00
2014-06-06 00:07:27 +02:00
2014-06-10 10:34:58 -07: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
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
2018-04-20 14:33:24 +02:00
2014-03-15 18:24:15 +01:00
2018-04-29 00:38:10 +02:00
2014-03-16 21:03:01 +01:00
2014-03-27 22:26:58 +01:00
2018-04-20 14:33:24 +02:00
2018-04-20 14:33:24 +02:00
2014-06-06 00:07:27 +02:00
2015-12-13 00:10:40 +01:00
2015-11-06 17:56:56 +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-01-12 03:37:13 +02:00
2018-04-20 14:33:24 +02:00
2018-04-20 14:33:24 +02:00
2017-09-19 02:05:11 +03:00
2015-06-02 22:07:47 +02:00