mariadb/storage
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
..
archive Merge branch '5.5' into 10.0 2017-07-06 23:47:33 +02:00
blackhole
cassandra MDEV-6662: possible bug in cassandra_se.cc 2015-12-10 02:28:41 +03:00
connect compiler warning 2018-05-04 17:35:01 +02:00
csv MDEV-6262 analyze the coverity report on mariadb 2017-05-19 20:26:56 +02:00
example
federated MDEV-13459 Warnings, when compiling with gcc-7.x 2017-10-17 07:37:39 +02:00
federatedx Merge remote-tracking branch '5.5' into 10.0 2018-01-24 12:29:31 +02:00
heap Merge branch '5.5' into 10.0 2018-02-22 09:22:03 +01:00
innobase Remove a redundant condition added by the 5.6.40 merge 2018-05-11 14:02:13 +03:00
maria Fixes for Aria transaction handling with lock tables 2018-05-22 23:05:48 +03:00
mroonga Fix compile with -DWITHOUT_DYNAMIC_PLUGINS on Unix 2017-09-23 23:23:05 +02:00
myisam Merge remote-tracking branch '5.5' into 10.0 2018-01-24 12:29:31 +02:00
myisammrg MDEV-12915 ST_Centroid does not return the same result than MySQL 2017-08-01 09:52:59 +02:00
ndb Fix compiler warnings 2017-09-01 15:40:49 +03:00
oqgraph MDEV-15510 - storage/oqgraph: Quench warnings with Boost 1.66 2018-04-11 14:22:10 +04:00
perfschema Merge branch 'merge-perfschema-5.6' into 10.0 2018-04-26 14:12:13 +02:00
sequence
sphinx Merge branch '5.5' into 10.0 2017-10-18 15:14:39 +02:00
spider Add missing {} to silence a compiler warning 2017-08-30 09:32:03 +03:00
test_sql_discovery
tokudb Merge branch 'merge-tokudb-5.6' into 10.0 2018-04-26 14:14:51 +02:00
xtradb Bug #26334149 - MYSQL CRASHES WHEN FULL TEXT INDEXES IBD FILES ARE ORPHANED DUE TO RENAME TABLE 2018-05-11 17:26:40 +03:00