1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

test cleanup: remove Format_description_log_event size dependency

1. use include/show_binlog_events.inc instead of SHOW BINLOG EVENTS
2. use include/show_relaylog_eventc.inc too
3. in all other places where a number might appear in the result
   file, include binlog_start_pos.inc, calculate the position
   like pos=`select $binlog_start_pos + 100`; and use
   replace_result $pos <pos>
This commit is contained in:
Sergei Golubchik
2015-08-21 23:20:35 +02:00
parent 8aa473c4b9
commit 55d7871f98
25 changed files with 221 additions and 180 deletions

View File

@@ -3,6 +3,7 @@
#
--source include/not_embedded.inc
--source include/binlog_start_pos.inc
--let $rpl_server_count= 0
--connect (slave,127.0.0.1,root,,,$SERVER_MYPORT_3)
@@ -38,13 +39,16 @@ stop slave 'master1';
--let $datadir = `SELECT @@datadir`
--replace_result $SERVER_MYPORT_1 MYPORT_1
let read_master_log_pos=`select $binlog_start_pos + 554`;
let relay_log_pos=`select 2*$binlog_start_pos + 594`;
let relay_log_space=`select 3*$binlog_start_pos + 652`;
--replace_result $SERVER_MYPORT_1 MYPORT_1 $read_master_log_pos <read_master_log_pos> $relay_log_pos <relay_log_pos> $relay_log_space <relay_log_space>
show slave 'master1' status;
--list_files $datadir mysqld*
reset slave 'master1';
--replace_result $SERVER_MYPORT_1 MYPORT_1
--replace_result $SERVER_MYPORT_1 MYPORT_1 $relay_log_pos <relay_log_pos> $relay_log_space <relay_log_space>
show slave 'master1' status;
--list_files $datadir mysqld*