3
# The same as 'connection $rpl_connection_name', but it can also
4
# prints the connection name. The connection is printed if $rpl_debug
5
# is set, or if rpl_connection.inc is not called between two
6
# invocations of begin_include_file.inc/end_include_file.inc.
7
# Otherwise the connection name is not printed.
12
# --let $rpl_connection_name= master
13
# [--let $rpl_debug= 1]
14
# --source include/rpl_connection.inc
17
# $rpl_connection_name
18
# Name of the connection to connect to.
21
# By default, the connection name is printed only when this file
22
# is sourced from a top-level test script. If $rpl_debug is set,
23
# the connection name is also printed whenever auxiliary files
24
# like rpl_init.inc change connection.
27
if (!$rpl_connection_name)
29
--die ERROR IN TEST: you must set $rpl_connection_name before sourcing rpl_connection.inc
32
# This is the same as "if (!$_rpl_include_file_depth || $rpl_debug)",
33
# but the mysqltest language doesn't have boolean operations.
35
if (!$_include_file_depth)
37
--echo [connection $rpl_connection_name]
39
if ($_include_file_depth)
43
--echo [connection $rpl_connection_name]
46
--connection $rpl_connection_name
47
--let $rpl_connection_name=