Debian Codegraph @

mysql-test/suite/clone/include/clone_command_send.inc

raw
1 ## Send Clone command
2
3 # These variables have to be set before sourcing this file. Currently we used
4 # to test both local and remote clone.
5 #
6 # 1. Clone command is expected to return error
7 # --let clone_err= <error number>
8 #
9 # 2. Test Remote Clone command. Default is local clone.
10 # --let remote_clone = 1
11 #
12 # 3. Test clone automatic tuning of threads
13 # --let clone_auto_tune = 1
14 #
15
16 if ($clone_err != ER_PLUGIN_IS_NOT_LOADED) {
17 if (!$clone_auto_tune) {
18 SET GLOBAL clone_autotune_concurrency = OFF;
19 SET GLOBAL clone_max_concurrency = 8;
20 }
21 if($remote_clone) {
22 if(!$skip_donor_config) {
23 --replace_result $HOST HOST $PORT PORT
24 --eval SET GLOBAL clone_valid_donor_list = '$HOST:$PORT'
25 }
26 }
27 }
28
29 if($remote_clone) {
30 # Execute Remote Clone command
31 --replace_result $CLONE_DATADIR CLONE_DATADIR $HOST HOST $PORT PORT $USER USER
32 --send_eval CLONE INSTANCE FROM $USER@$HOST:$PORT IDENTIFIED BY '' DATA DIRECTORY = '$CLONE_DATADIR'
33 }
34
35 if (!$remote_clone) {
36 # Execute Local Clone command
37 --replace_result $CLONE_DATADIR CLONE_DATADIR
38 --send_eval CLONE LOCAL DATA DIRECTORY = '$CLONE_DATADIR'
39 }