MOON
Server: Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4
System: Linux vps.panamaemb.org.sg 3.10.0-1160.80.1.vz7.191.4 #1 SMP Thu Dec 15 20:31:06 MSK 2022 x86_64
User: panama (500)
PHP: 5.2.17
Disabled: NONE
Upload Files
File: //proc/2/cwd/usr/share/mysql-test/include/wait_for_slave_to_sync_with_master.inc
#
# Similar to sync_slave_with_master but supports a configurable timeout
#  let $slave_sync_timeout =  300;
#  source include/wait_for_slave_to_sync_with_master;
#

connection slave;
stop slave;
start slave;

connection master;

let $file = query_get_value(SHOW MASTER STATUS, File, 1);
let $pos = query_get_value(SHOW MASTER STATUS, Position, 1);

connection slave;
--disable_result_log
--disable_query_log
eval select master_pos_wait("$file", $pos, $slave_sync_timeout);
--enable_result_log
--enable_query_log

connection master;
sync_slave_with_master;

connection master;