3 # Create a connection to a given numbered server.
5 # This script is normally used internally by rpl_init.inc and
6 # master-slave.inc, but it can also be used in test cases that need to
7 # create more connections or re-create connections after disconnect.
12 # --let $rpl_connection_name= <connection_name>
13 # --let $rpl_server_number= <server_number>
14 # [--let $rpl_debug= 1]
15 # --source include/rpl_connect.inc
18 # $rpl_connection_name
19 # The name of the connection to create.
22 # The number of the server to connect to.
25 # See include/rpl_init.inc
28 --let $include_filename= rpl_connect.inc [creating $rpl_connection_name]
29 --source include/begin_include_file.inc
32 if (!$rpl_server_number)
34 --die ERROR IN TEST: You must
set $rpl_server_number before sourcing include/rpl_connect.inc
36 if (!$rpl_connection_name)
38 --die ERROR IN TEST: You must
set $rpl_connection_name before sourcing include/rpl_connect.inc
42 --let $_rpl_port= \$SERVER_MYPORT_$rpl_server_number
45 --echo Bug in
test case:
'\$SERVER_MYPORT_$rpl_server_number' not initialized.
Check the
test's .cfg file.
46 --die Not all SERVER_MYPORT_* environment variables are setup correctly.
52 --echo connect ($rpl_connection_name,127.0.0.1,root,,test,$_rpl_port,)
54 --connect ($rpl_connection_name,127.0.0.1,root,,test,$_rpl_port,)
57 --let $include_filename= rpl_connect.inc
58 --source include/end_include_file.inc