mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 21:42:35 +01:00
bb63582ed9
Problem: rpl_ndb_transaction fails because it assumes nothing is written to the binlog at a certain point. However, ndb may binlog updates in ndb system tables at a nondeterministic time point after an ndb table update has been committed. Fix: break the test into two. rpl_ndb_transaction still does the ndb updates needed by the first half of the test. The new test case rpl_bug26395 includes the part that assumes nothing more will be written to the binlog.
25 lines
697 B
PHP
25 lines
697 B
PHP
# ==== Purpose ====
|
|
#
|
|
# Waits until the slave IO thread has been synced, i.e., all events
|
|
# have been copied over to slave. Does not care if the SQL thread is
|
|
# in sync.
|
|
#
|
|
#
|
|
# ==== Usage ====
|
|
#
|
|
# Syncs to the current position on master, as found by SHOW MASTER
|
|
# STATUS.
|
|
#
|
|
# Must be called on the master.
|
|
|
|
let $_master_file= query_get_value("SHOW MASTER STATUS", File, 1);
|
|
let $_master_pos= query_get_value("SHOW MASTER STATUS", Position, 1);
|
|
|
|
connection slave;
|
|
|
|
let $slave_param= Master_Log_File;
|
|
let $slave_param_value= $_master_file;
|
|
source include/wait_for_slave_param.inc;
|
|
let $slave_param= Read_Master_Log_Pos;
|
|
let $slave_param_value= $_master_pos;
|
|
source include/wait_for_slave_param.inc;
|