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/extra/rpl_tests/rpl_temp_error.test
# An auxiliary file for causing temporary error on slave SQL thread.

--echo # [ on slave ]
connection slave;
BEGIN;
--echo # It will lock table t1 on the row in which c1 is 1 until COMMIT or ROLLBACK
UPDATE t1 SET c2= "slave" WHERE c1= 1;

connection master;
--echo # [ on master ]
BEGIN;
INSERT INTO t3 VALUES(1);
eval $statement;
eval UPDATE t1 SET c2='$statement' WHERE c1= 1;
COMMIT;
save_master_pos;

connection slave;
--echo # [ on slave ]
let $slave_sql_errno= 1205;
source include/wait_for_slave_sql_error.inc;

ROLLBACK;

START SLAVE SQL_THREAD;
source include/wait_for_slave_sql_to_start.inc;

sync_with_master;