~ubuntu-branches/ubuntu/karmic/mysql-dfsg-5.1/karmic

« back to all changes in this revision

Viewing changes to mysql-test/suite/rpl/t/rpl_cross_version.test

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-06-25 12:55:45 UTC
  • mfrom: (0.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20090625125545-v27uqh8rlsj8uh2y
Tags: upstream-5.1.34
ImportĀ upstreamĀ versionĀ 5.1.34

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ==== Purpose ====
 
2
#
 
3
# Verify cross-version replication from an old master to the up-to-date slave
 
4
#
 
5
# ==== Implementation ====
 
6
#
 
7
# Feed to the slave server a binlog recorded on an old version master 
 
8
# via setting up slave-to-slave replication. The latter is done by means of
 
9
# the opt file and include/setup_fake_relay_log.inc.
 
10
# The master's binlog is treated as a relay log that the SQL thread executes.
 
11
#
 
12
 
 
13
--source include/have_log_bin.inc
 
14
 
 
15
# The test is disabled for windows due to 
 
16
# Bug #42879 CHANGE MASTER RELAY_LOG_FILE=path fails on windows
 
17
# Todo: release it from not_windows
 
18
--source include/not_windows.inc
 
19
 
 
20
#
 
21
# Bug#31240 load data infile replication between (4.0 or 4.1) and 5.1 fails
 
22
#
 
23
 
 
24
--echo ==== Initialize ====
 
25
# the relay log contains create t1, t3 tables and load data infile
 
26
--let $fake_relay_log = $MYSQL_TEST_DIR/suite/binlog/std_data/binlog_old_version_4_1.000001
 
27
--source include/setup_fake_relay_log.inc
 
28
 
 
29
--echo ==== Test ====
 
30
start slave sql_thread;
 
31
--let $slave_param = Exec_Master_Log_Pos
 
32
# end_log_pos of the last event of the relay log
 
33
--let $slave_param_value = 149436
 
34
--source include/wait_for_slave_param.inc
 
35
--echo ==== a prove that the fake has been processed successfully ====
 
36
SELECT COUNT(*) - 17920 as zero FROM t3;
 
37
 
 
38
--echo ==== Clean up ====
 
39
stop slave sql_thread;
 
40
--source include/cleanup_fake_relay_log.inc
 
41
drop table t1, t3;