diff options
| author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-11-28 13:11:43 +0200 |
|---|---|---|
| committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-11-28 13:11:43 +0200 |
| commit | 6f854d7cfee883cba95602760b71e3a368fe39f4 (patch) | |
| tree | 2f652dddd52ca5cfb000025d6d96e8aa753cfba3 /mysql-test/suite/binlog/t | |
| parent | 035c4dd3e99a2f33dd6d94dcc7d11d64a8acce1b (diff) | |
| parent | f124d71ab75e0d449eb80fb909fa3b0ac4b191a8 (diff) | |
| download | mariadb-git-6f854d7cfee883cba95602760b71e3a368fe39f4.tar.gz | |
Merge 10.7 into 10.8
Diffstat (limited to 'mysql-test/suite/binlog/t')
| -rw-r--r-- | mysql-test/suite/binlog/t/binlog_checkpoint.test | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/mysql-test/suite/binlog/t/binlog_checkpoint.test b/mysql-test/suite/binlog/t/binlog_checkpoint.test index 19b48ef68b0..4237f33c8af 100644 --- a/mysql-test/suite/binlog/t/binlog_checkpoint.test +++ b/mysql-test/suite/binlog/t/binlog_checkpoint.test @@ -212,7 +212,23 @@ XA END 'xa1'; --source include/start_mysqld.inc --echo ** Proof of shutdown caused ROLLBACK-completed transaction ---source include/show_binlog_events.inc + +--let assert_file=$MYSQLTEST_VARDIR/tmp/binlog_decoded.out +--let datadir=`select @@datadir` + +--echo # MYSQL_BINLOG datadir/binlog_file --result-file=assert_file +--exec $MYSQL_BINLOG $datadir/$binlog_file --result-file=$assert_file + +--let $assert_text= No XA statements should be written into the binary log +--let $assert_count= 0 +--let assert_select= XA START|XA END|XA PREPARE|XA COMMIT|XA ROLLBACK +--source include/assert_grep.inc + +--let $assert_text= The transaction should be rolled back +--let $assert_count= 1 +--let assert_select= ^ROLLBACK\$ +--source include/assert_grep.inc + SELECT * FROM tm; --eval SELECT * FROM t1 WHERE a = $a |
