~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/include/diff_master_slave.inc

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# ==== Purpose ====
 
2
#
 
3
# Diff the output of a statement on master and slave
 
4
#
 
5
# ==== Usage =====
 
6
#
 
7
# let $diff_statement= SELECT * FROM t1 WHERE a < 100;
 
8
# source include/diff_master_slave.inc;
 
9
 
 
10
--echo source include/diff_master_slave.inc;
 
11
disable_query_log;
 
12
disable_result_log;
 
13
 
 
14
exec $MYSQL test -e "$diff_statement" > $MYSQLTEST_VARDIR/tmp/diff_master.out;
 
15
sync_slave_with_master;
 
16
exec $MYSQL_SLAVE test -e "$diff_statement" > $MYSQLTEST_VARDIR/tmp/diff_slave.out;
 
17
 
 
18
diff_files $MYSQLTEST_VARDIR/tmp/diff_master.out $MYSQLTEST_VARDIR/tmp/diff_slave.out;
 
19
 
 
20
enable_result_log;
 
21
enable_query_log;