diff options
| author | Marko Mäkelä <marko.makela@mariadb.com> | 2022-11-28 13:43:41 +0200 |
|---|---|---|
| committer | Marko Mäkelä <marko.makela@mariadb.com> | 2022-11-28 13:43:41 +0200 |
| commit | 9e652870429496e770fe8876703c0c2edf4ee43a (patch) | |
| tree | 33e0280f26eba9c6ca1017d2f27fc1699fc493a6 /mysql-test/suite/binlog/t | |
| parent | fc0120d184241dcd3688c096de01ac95a3ded962 (diff) | |
| parent | 9abd70e390bd8ef2e8347677a2aedd00151f0712 (diff) | |
| download | mariadb-git-9e652870429496e770fe8876703c0c2edf4ee43a.tar.gz | |
Merge 10.9 into 10.10
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 |
