mariadb/mysql-test/suite
Kristian Nielsen b79685902d MDEV-6903: gtid_slave_pos is incorrect after master crash
When a master slave restarts, it logs a special restart format description
event in its binlog. When the slave sees this event, it knows it needs to roll
back any active partial transaction, in case the master crashed previously in
the middle of writing such transaction to its binlog.

However, there was a bug where this rollback did not reset rgi->pending_gtid.
This caused the @@gtid_slave_pos to be updated incorrectly with the GTID of
the partial transaction that was rolled back.

Fix this by always clearing rgi->pending_gtid in cleanup_context(), hopefully
preventing similar bugs from turning up in other special cases where a
transaction is rolled back during replication.

Thanks to Pavel Ivanov for tracking down the issue and providing a test case.
2014-11-25 12:19:48 +01:00
..
archive 5.5.39 merge 2014-08-07 18:06:56 +02:00
binlog 5.5 merge 2014-11-19 17:23:39 +01:00
csv MDEV-5612 - my_rename() deletes files when it shouldn't 2014-02-26 12:55:28 +04:00
engines Don't give warning if there are two unique keys used with INSERT .. ON DUPLICATE KEY UPDATE. 2014-09-16 00:00:47 +03:00
federated 10.0-base merge 2014-02-26 15:28:07 +01:00
funcs_1 MDEV-6528 review debian patches for mysql 2014-10-02 11:58:24 +02:00
funcs_2 overlay support for mysql-test-run and mysqltest 2012-02-23 07:50:11 +01:00
handler 10.0-base merge 2014-02-03 15:22:39 +01:00
heap 5.5.40+ merge 2014-10-09 10:30:11 +02:00
innodb MDEV-7046: MySQL#74480 - Failing assertion: os_file_status(newpath, &exists, &type) 2014-11-25 11:38:01 +02:00
innodb_fts MDEV-6047: Make exists_to_in optimization ON by default 2014-06-09 13:42:21 +03:00
innodb_zip 10.0-base merge 2014-02-26 15:28:07 +01:00
jp find_files(): don't sort files in my_dir(), sort table names 2013-04-07 17:17:25 +02:00
large_tests
manual
maria 5.5.39 merge 2014-08-07 18:06:56 +02:00
mtr/t overlay support for mysql-test-run and mysqltest 2012-02-23 07:50:11 +01:00
mtr2 Fix for overlayed include files on Windows and a test case 2013-11-10 14:37:32 +04:00
multi_source MDEV-7074 multi_source.simple test fails in buildbot 2014-11-19 14:34:49 +04:00
optimizer_unfixed_bugs MDEV-4447 MariaDB sources should have unix-style line endings everywhere 2014-02-27 12:00:16 +01:00
parts 5.5 merge 2014-05-09 12:35:11 +02:00
percona Percona-Server-5.6.14-rel62.0 merge 2013-12-22 17:06:50 +01:00
perfschema MDEV-7075 perfschema.mks_timer-6258 test not skipped on builds without perfschema 2014-11-12 05:40:21 +04:00
perfschema_stress perfschema 5.6.10 initial commit. 2014-05-06 23:20:50 +02:00
plugins MDEV-7157 plugins.server_audit fails sporadically in buildbot. 2014-11-24 02:53:45 +04:00
roles MDEV-6401 SET ROLE returning ERROR 1959 Invalid role specification for valid role 2014-06-27 09:32:55 +02:00
rpl MDEV-6903: gtid_slave_pos is incorrect after master crash 2014-11-25 12:19:48 +01:00
storage_engine 5.5 merge 2014-11-19 17:23:39 +01:00
stress Bug #11751927 42960: MTR2: NO MORE --STRESS PARAMETERS 2011-09-15 12:34:32 +02:00
sys_vars 5.5 merge 2014-11-21 20:20:39 +01:00
unit MDEV-4425 REGEXP enhancements 2013-09-26 18:02:17 +04:00
vcol 5.5 merge 2014-11-19 17:23:39 +01:00