summaryrefslogtreecommitdiff
path: root/mysql-test/suite/percona/percona_show_slave_status_nolock.result
blob: 1d6114a001efe1593888769ec9424acbbf2a04e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
include/master-slave.inc
[connection master]
DROP TABLE IF EXISTS t;
CREATE TABLE t(id INT);
INSERT INTO t SELECT SLEEP(10);
STOP SLAVE;
Warnings:
Note	1592	Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statement is unsafe because it uses a system function that may return a different value on the slave.
master	count(*)
master	1
slave	count(*)
slave	0
SHOW SLAVE STATUS NOLOCK;
include/wait_for_slave_to_stop.inc
START SLAVE;
include/wait_for_slave_to_start.inc
slave	count(*)
slave	1
DROP TABLE t;
STOP SLAVE;
include/wait_for_slave_to_stop.inc