~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#
5
5
# ==== Usage ====
6
6
#
7
 
# --let $slave_param= Exec_Master_Log_Pos
8
 
# --let $slave_param_value= 4711
 
7
# --let $slave_param= COLUMN_NAME
 
8
# --let $slave_param_value= VALUE
 
9
# [--let $rpl_debug= 1]
9
10
# --source include/check_slave_param.inc
 
11
#
 
12
# Parameters:
 
13
#   $slave_param, $slave_param_value
 
14
#     Column name in output of SHOW SLAVE STATUS that should be checked,
 
15
#     and the expected value. Example:
 
16
#       --let $slave_param= Exec_Master_Log_Pos
 
17
#       --let $slave_param_value= 4711
 
18
#
 
19
#   $rpl_debug
 
20
#     See include/rpl_init.inc
 
21
 
 
22
 
 
23
--let $include_filename= check_slave_param.inc [$slave_param]
 
24
--source include/begin_include_file.inc
 
25
 
10
26
 
11
27
--let $_param_value= query_get_value(SHOW SLAVE STATUS, $slave_param, 1)
12
28
if (`SELECT '$_param_value' != '$slave_param_value'`) {
 
29
  --source include/show_rpl_debug_info.inc
13
30
  --echo Wrong value for $slave_param. Expected '$slave_param_value', got '$_param_value'
14
 
  --source include/show_rpl_debug_info.inc
15
31
  --die Wrong value for slave parameter
16
32
}
 
33
 
 
34
 
 
35
--let $include_filename= check_slave_param.inc
 
36
--source include/end_include_file.inc