File: master-slave-reset.inc

package info (click to toggle)
drizzle 1%3A7.1.36-stable-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 229,472 kB
  • sloc: cpp: 331,140; perl: 52,862; yacc: 44,202; sh: 12,245; python: 9,824; sql: 4,241; ansic: 2,758; pascal: 2,576; lex: 767; makefile: 305
file content (40 lines) | stat: -rw-r--r-- 1,040 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
connection slave;

#we expect STOP SLAVE to produce a warning as the slave is stopped
#(the server was started with skip-slave-start)
--disable_warnings
stop slave;
--wait_for_slave_to_stop
--enable_warnings

connection master;
--disable_warnings
--disable_query_log
use test;
--enable_query_log
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
--enable_warnings
reset master;
connection slave;

--disable_warnings
# the first RESET SLAVE may produce a warning about non-existent
# 'ndb_apply_status' table, because this table is created
# asynchronously at the server startup and may not exist yet
# if RESET SLAVE comes too soon after the server startup
reset slave;
--enable_warnings

# Clean up old test tables
--disable_warnings
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
--enable_warnings

--disable_query_log
eval CHANGE MASTER TO MASTER_USER='root',
                      MASTER_CONNECT_RETRY=1,
                      MASTER_HOST='localhost',
                      MASTER_PORT=$MASTER_MYPORT;
--enable_query_log

start slave;