mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 14:02:32 +01:00
fb1ed3900b
That option was used to suppress the XID from the output of SHOW BINLOG EVENTS (to create a repeatable testsuite), was available only in debug builds, and was explicitely marked as "may be removed in future versions" in mysqld --help. Idea of the removal approved by the replication team. mysql-test/extra/binlog_tests/binlog.test: use replace-regex to remove xid mysql-test/extra/binlog_tests/mix_innodb_myisam_binlog.test: use replace-regex to remove xid mysql-test/mysql-test-run.pl: option removed mysql-test/mysql-test-run.sh: option removed sql/log_event.cc: no more need to hide XID in tests output as we have replace-regex sql/log_event.h: no more need to hide XID in tests output as we have replace-regex sql/mysqld.cc: no more need to hide XID in tests output as we have replace-regex
51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
#
|
|
# misc binlogging tests that do not require a slave running
|
|
#
|
|
|
|
-- source include/not_embedded.inc
|
|
-- source include/have_bdb.inc
|
|
-- source include/have_innodb.inc
|
|
-- source include/have_debug.inc
|
|
|
|
--disable_warnings
|
|
drop table if exists t1, t2;
|
|
--enable_warnings
|
|
reset master;
|
|
|
|
create table t1 (a int) engine=bdb;
|
|
create table t2 (a int) engine=innodb;
|
|
begin;
|
|
insert t1 values (5);
|
|
commit;
|
|
begin;
|
|
insert t2 values (5);
|
|
commit;
|
|
# first COMMIT must be Query_log_event, second - Xid_log_event
|
|
--replace_column 2 # 5 #
|
|
--replace_regex /table_id: [0-9]+/table_id: #/ /\/\* xid=.* \*\//\/* xid= *\//
|
|
show binlog events from 102;
|
|
drop table t1,t2;
|
|
|
|
#
|
|
# binlog rotation after one big transaction
|
|
#
|
|
reset master;
|
|
let $1=100;
|
|
|
|
create table t1 (n int) engine=innodb;
|
|
begin;
|
|
--disable_query_log
|
|
while ($1)
|
|
{
|
|
eval insert into t1 values($1 + 4);
|
|
dec $1;
|
|
}
|
|
--enable_query_log
|
|
commit;
|
|
drop table t1;
|
|
--replace_column 2 # 5 #
|
|
--replace_regex /table_id: [0-9]+/table_id: #/ /\/\* xid=.* \*\//\/* xid= *\//
|
|
show binlog events in 'master-bin.000001' from 102;
|
|
--replace_column 2 # 5 #
|
|
--replace_regex /table_id: [0-9]+/table_id: #/ /\/\* xid=.* \*\//\/* xid= *\//
|
|
show binlog events in 'master-bin.000002' from 102;
|