summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Elkin <andrei.elkin@mariadb.com>2020-04-16 22:12:23 +0300
committerSujatha <sujatha.sivakumar@mariadb.com>2020-04-20 15:02:09 +0530
commit2ecd0e45db6d90159b95c76e5e874136edb3a0c7 (patch)
tree44094357caf6c80044fbf5390f020015f29278ea
parentde8658523584352be345f2ab0211a85e37f445d0 (diff)
downloadmariadb-git-2ecd0e45db6d90159b95c76e5e874136edb3a0c7.tar.gz
binlog_truncate_multi_log.test is made
to prove there is rotation indeed.
-rw-r--r--mysql-test/suite/binlog/r/binlog_truncate_multi_log.result7
-rw-r--r--mysql-test/suite/binlog/t/binlog_truncate_multi_log.test4
2 files changed, 9 insertions, 2 deletions
diff --git a/mysql-test/suite/binlog/r/binlog_truncate_multi_log.result b/mysql-test/suite/binlog/r/binlog_truncate_multi_log.result
index 90714c79a2e..1a3d49b5463 100644
--- a/mysql-test/suite/binlog/r/binlog_truncate_multi_log.result
+++ b/mysql-test/suite/binlog/r/binlog_truncate_multi_log.result
@@ -5,10 +5,15 @@ call mtr.add_suppression("Aborting");
RESET MASTER;
CREATE TABLE t1 (a INT PRIMARY KEY, b MEDIUMTEXT) ENGINE=Innodb;
FLUSH LOGS;
+"List of binary logs before rotation"
+show binary logs;
+Log_name File_size
+master-bin.000001 #
+master-bin.000002 #
SET DEBUG_SYNC= "commit_after_release_LOCK_log SIGNAL con1_ready WAIT_FOR con1_go";
INSERT INTO t1 VALUES (2, REPEAT("x", 4100));
SET DEBUG_SYNC= "now WAIT_FOR con1_ready";
-"List of binary logs"
+"List of binary logs after rotation"
show binary logs;
Log_name File_size
master-bin.000001 #
diff --git a/mysql-test/suite/binlog/t/binlog_truncate_multi_log.test b/mysql-test/suite/binlog/t/binlog_truncate_multi_log.test
index ab9b122bd3a..0a6e011627e 100644
--- a/mysql-test/suite/binlog/t/binlog_truncate_multi_log.test
+++ b/mysql-test/suite/binlog/t/binlog_truncate_multi_log.test
@@ -45,12 +45,14 @@ connect(master2,localhost,root,,);
# Use "commit_after_release_LOCK_log" sync point. This point is reached after
# the binary log end position is updated which actually triggers binlog to be
# rotated.
+--echo "List of binary logs before rotation"
+--source include/show_binary_logs.inc
SET DEBUG_SYNC= "commit_after_release_LOCK_log SIGNAL con1_ready WAIT_FOR con1_go";
send INSERT INTO t1 VALUES (2, REPEAT("x", 4100));
--connection master2
SET DEBUG_SYNC= "now WAIT_FOR con1_ready";
---echo "List of binary logs"
+--echo "List of binary logs after rotation"
--source include/show_binary_logs.inc
--write_file $MYSQLTEST_VARDIR/tmp/mysqld.1.expect
wait