mariadb/storage
Andrei Elkin 888a8b69bd MDEV-13437 InnoDB fails to return error for XA COMMIT or XA ROLLBACK in read-only mode
Assertions failed due to incorrect handling of the --tc-heuristic-recover
option when InnoDB is in read-only mode either due to innodb_read_only=1
or innodb_force_recovery>3. InnoDB failed to refuse a XA COMMIT or
XA ROLLBACK operation, and there were errors in the error handling in
the upper layer.

This was fixed by making InnoDB XA operations respect the
high_level_read_only flag. The InnoDB part of the fix and
parts of the test main.tc_heuristic_recover were provided
by Marko Mäkelä.

LOCK_log mutex lock/unlock had to be added to fix MDEV-13438.
The measure is confirmed by mysql sources as well.

For testing of the conflicting option combination, mysql-test-run is
made to export a new $MYSQLD_LAST_CMD. It holds the very last value
generated by mtr.mysqld_start().  Even though the options have been
also always stored in $mysqld->{'started_opts'} there were no access
to them beyond the automatic server restart by mtr through the expect
file interface.

Effectively therefore $MYSQLD_LAST_CMD represents a more general
interface to $mysqld->{'started_opts'} which can be used in wider
scopes including server launch with incompatible options.

Notice another existing method to restart the server with incompatible
options relying on $MYSQLD_CMD is is aware of $mysqld->{'started_opts'}
(the actual options that the server is launched by mtr). In order to use
this method they would have to be provided manually.

NOTE: When merging to 10.2, the file search_pattern_in_file++.inc
should be replaced with the pre-existing search_pattern_in_file.inc.
2017-08-29 11:59:59 +03:00
..
archive Merge branch '5.5' into 10.0 2017-07-06 23:47:33 +02:00
blackhole MDEV-5120 Test suite test maria-no-logging fails 2014-09-30 20:31:14 +03:00
cassandra MDEV-6662: possible bug in cassandra_se.cc 2015-12-10 02:28:41 +03:00
connect CONNECT engine: install ha_connect.lib 2017-08-23 23:30:51 +00:00
csv MDEV-6262 analyze the coverity report on mariadb 2017-05-19 20:26:56 +02:00
example 5.5.40+ merge 2014-10-09 10:30:11 +02:00
federated MDEV-12824 GCC 7 warning: this statement may fall through [-Wimplicit-fallthrough=] 2017-07-20 20:13:28 +02:00
federatedx MDEV-12824 GCC 7 warning: this statement may fall through [-Wimplicit-fallthrough=] 2017-07-20 20:13:28 +02:00
heap MDEV-12824 GCC 7 warning: this statement may fall through [-Wimplicit-fallthrough=] 2017-07-20 20:13:28 +02:00
innobase MDEV-13437 InnoDB fails to return error for XA COMMIT or XA ROLLBACK in read-only mode 2017-08-29 11:59:59 +03:00
maria Merge remote-tracking branch 'origin/5.5' into 10.0 2017-07-25 00:41:54 +03:00
mroonga Merge branch '5.5' into 10.0 2017-07-06 23:47:33 +02:00
myisam Merge remote-tracking branch 'origin/5.5' into 10.0 2017-07-25 00:41:54 +03:00
myisammrg MDEV-12915 ST_Centroid does not return the same result than MySQL 2017-08-01 09:52:59 +02:00
ndb Fix spelling: occurred, execute, which etc 2016-03-04 02:09:37 +02:00
oqgraph Fixed test failing as myisam table was deleted before oqgraph table. 2017-02-28 16:10:47 +01:00
perfschema Revert "Fix unit test after merge from mysql 5.5.35 perfschema" 2017-05-17 12:13:09 +03:00
sequence 5.5.40+ merge 2014-10-09 10:30:11 +02:00
sphinx MDEV-5477 sphinxSE GROUP BY on multiple attributes 2017-05-16 12:42:53 +02:00
spider Merge branch '5.5' into 10.0 2017-07-06 23:47:33 +02:00
test_sql_discovery MDEV-4955 discover of table non-existance on CREATE 2014-02-27 22:43:42 +01:00
tokudb Merge branch 'bb-10.0-vicentiu' into 10.0 2017-08-04 09:32:40 +02:00
xtradb MDEV-13437 InnoDB fails to return error for XA COMMIT or XA ROLLBACK in read-only mode 2017-08-29 11:59:59 +03:00