mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
70c1311fb9
Remove extra space for "send" commands mysql-test/extra/rpl_tests/rpl_truncate_helper.test: Get $SERVER_VERSION from the mysqld mysql-test/r/flush_table.result: Remove extra space for "send" commands mysql-test/r/handler_innodb.result: Remove extra space for "send" commands mysql-test/r/lock_multi.result: Remove extra space for "send" commands mysql-test/r/log_tables.result: Remove extra space for "send" commands
42 lines
982 B
Text
42 lines
982 B
Text
|
|
--disable_query_log
|
|
--disable_warnings
|
|
connection slave;
|
|
STOP SLAVE;
|
|
connection master;
|
|
DROP TABLE IF EXISTS t1;
|
|
RESET MASTER;
|
|
connection slave;
|
|
DROP TABLE IF EXISTS t1;
|
|
RESET SLAVE;
|
|
START SLAVE;
|
|
--enable_warnings
|
|
--enable_query_log
|
|
|
|
--echo **** On Master ****
|
|
connection master;
|
|
eval SET SESSION BINLOG_FORMAT=$format;
|
|
eval SET GLOBAL BINLOG_FORMAT=$format;
|
|
|
|
eval CREATE TABLE t1 (a INT, b LONG) ENGINE=$engine;
|
|
INSERT INTO t1 VALUES (1,1), (2,2);
|
|
SELECT * FROM t1;
|
|
--echo **** On Slave ****
|
|
sync_slave_with_master;
|
|
INSERT INTO t1 VALUE (3,3);
|
|
SELECT * FROM t1;
|
|
--echo **** On Master ****
|
|
connection master;
|
|
eval $stmt t1;
|
|
SELECT * FROM t1;
|
|
--echo **** On Slave ****
|
|
sync_slave_with_master;
|
|
# Should be empty
|
|
SELECT * FROM t1;
|
|
--echo **** On Master ****
|
|
connection master;
|
|
DROP TABLE t1;
|
|
let $SERVER_VERSION=`select version()`;
|
|
--replace_result $SERVER_VERSION SERVER_VERSION
|
|
--replace_regex /\/\* xid=[0-9]+ \*\//\/* xid= *\// /table_id: [0-9]+/table_id: #/
|
|
SHOW BINLOG EVENTS;
|