930
path_myddir => "$opt_vardir/master-data",
931
path_myerr => "$opt_vardir/log/master.err",
932
path_pid => "$opt_vardir/run/master.pid",
933
path_sock => "$sockdir/master.sock",
934
port => $opt_master_myport,
935
secondary_port => $opt_master_myport + $secondary_port_offset,
936
start_timeout => 400, # enough time create innodb tables
937
cluster => 0, # index in clusters list
902
path_myddir => "$opt_vardir/master-data",
903
path_myerr => "$opt_vardir/log/master.err",
904
path_pid => "$opt_vardir/run/master.pid",
905
path_sock => "$sockdir/master.sock",
906
port => $opt_master_myport,
907
start_timeout => 400, # enough time create innodb tables
908
cluster => 0, # index in clusters list
946
path_myddir => "$opt_vardir/master1-data",
947
path_myerr => "$opt_vardir/log/master1.err",
948
path_pid => "$opt_vardir/run/master1.pid",
949
path_sock => "$sockdir/master1.sock",
950
port => $opt_master_myport + 1,
951
secondary_port => $opt_master_myport + 1 + $secondary_port_offset,
952
start_timeout => 400, # enough time create innodb tables
953
cluster => 0, # index in clusters list
917
path_myddir => "$opt_vardir/master1-data",
918
path_myerr => "$opt_vardir/log/master1.err",
919
path_pid => "$opt_vardir/run/master1.pid",
920
path_sock => "$sockdir/master1.sock",
921
port => $opt_master_myport + 1,
922
start_timeout => 400, # enough time create innodb tables
923
cluster => 0, # index in clusters list
962
path_myddir => "$opt_vardir/slave-data",
963
path_myerr => "$opt_vardir/log/slave.err",
964
path_pid => "$opt_vardir/run/slave.pid",
965
path_sock => "$sockdir/slave.sock",
966
port => $opt_slave_myport,
967
secondary_port => $opt_slave_myport + $secondary_port_offset,
968
start_timeout => 400,
969
cluster => 1, # index in clusters list
932
path_myddir => "$opt_vardir/slave-data",
933
path_myerr => "$opt_vardir/log/slave.err",
934
path_pid => "$opt_vardir/run/slave.pid",
935
path_sock => "$sockdir/slave.sock",
936
port => $opt_slave_myport,
937
start_timeout => 400,
939
cluster => 1, # index in clusters list
978
path_myddir => "$opt_vardir/slave1-data",
979
path_myerr => "$opt_vardir/log/slave1.err",
980
path_pid => "$opt_vardir/run/slave1.pid",
981
path_sock => "$sockdir/slave1.sock",
982
port => $opt_slave_myport + 1,
983
secondary_port => $opt_slave_myport + 1 + $secondary_port_offset,
984
start_timeout => 300,
985
cluster => -1, # index in clusters list
948
path_myddir => "$opt_vardir/slave1-data",
949
path_myerr => "$opt_vardir/log/slave1.err",
950
path_pid => "$opt_vardir/run/slave1.pid",
951
path_sock => "$sockdir/slave1.sock",
952
port => $opt_slave_myport + 1,
953
start_timeout => 300,
954
cluster => -1, # index in clusters list
994
path_myddir => "$opt_vardir/slave2-data",
995
path_myerr => "$opt_vardir/log/slave2.err",
996
path_pid => "$opt_vardir/run/slave2.pid",
997
path_sock => "$sockdir/slave2.sock",
998
port => $opt_slave_myport + 2,
999
secondary_port => $opt_slave_myport + 2 + $secondary_port_offset,
1000
start_timeout => 300,
1001
cluster => -1, # index in clusters list
963
path_myddir => "$opt_vardir/slave2-data",
964
path_myerr => "$opt_vardir/log/slave2.err",
965
path_pid => "$opt_vardir/run/slave2.pid",
966
path_sock => "$sockdir/slave2.sock",
967
port => $opt_slave_myport + 2,
968
start_timeout => 300,
969
cluster => -1, # index in clusters list
1457
1395
$ENV{'SLAVE_MYPORT'}= $slave->[0]->{'port'};
1458
1396
$ENV{'SLAVE_MYPORT1'}= $slave->[1]->{'port'};
1459
1397
$ENV{'SLAVE_MYPORT2'}= $slave->[2]->{'port'};
1460
$ENV{'MC_PORT'}= $opt_memc_myport;
1461
$ENV{'DRIZZLE_TCP_PORT'}= $mysqld_variables{'drizzle-protocol-port'};
1398
$ENV{'DRIZZLE_TCP_PORT'}= $mysqld_variables{'port'};
1463
1400
$ENV{'MTR_BUILD_THREAD'}= $opt_mtr_build_thread;
1465
1402
$ENV{'EXE_MYSQL'}= $exe_drizzle;
1404
# ----------------------------------------------------
1405
# Setup env so childs can execute mysqlcheck
1406
# ----------------------------------------------------
1407
my $cmdline_mysqlcheck=
1408
mtr_native_path($exe_drizzlecheck) .
1409
" --no-defaults --debug-check -uroot " .
1410
"--port=$master->[0]->{'port'} ";
1414
$cmdline_mysqlcheck .=
1415
" --debug=d:t:A,$path_vardir_trace/log/mysqlcheck.trace";
1417
$ENV{'DRIZZLE_CHECK'}= $cmdline_mysqlcheck;
1468
1419
# ----------------------------------------------------
1469
1420
# Setup env to childs can execute myqldump
1470
1421
# ----------------------------------------------------
1471
1422
my $cmdline_mysqldump= generate_cmdline_mysqldump($master->[0]);
1472
1423
my $cmdline_mysqldumpslave= generate_cmdline_mysqldump($slave->[0]);
1473
my $cmdline_mysqldump_secondary= mtr_native_path($exe_drizzledump) .
1474
" --no-defaults -uroot " .
1475
" --port=$master->[0]->{'secondary_port'} ";
1477
1425
if ( $opt_debug )
2526
2456
mtr_add_arg($args, "%s--pid-file=%s", $prefix,
2527
2457
$mysqld->{'path_pid'});
2529
mtr_add_arg($args, "%s--mysql-protocol-port=%d", $prefix,
2532
mtr_add_arg($args, "%s--drizzle-protocol-port=%d", $prefix,
2533
$mysqld->{'secondary_port'});
2459
mtr_add_arg($args, "%s--port=%d", $prefix,
2535
2462
mtr_add_arg($args, "%s--datadir=%s", $prefix,
2536
2463
$mysqld->{'path_myddir'});
2465
my $log_base_path= "$opt_vardir/log/$mysqld->{'type'}$sidx";
2466
mtr_add_arg($args, "%s--log=%s.log", $prefix, $log_base_path);
2538
2468
# Check if "extra_opt" contains --skip-log-bin
2539
2469
if ( $mysqld->{'type'} eq 'master' )
3260
# Modify the exe and args so that program is run in gdb in xterm
3267
# Write $args to gdb init file
3268
my $str= join(" ", @$$args);
3269
my $dbx_init_file= "$opt_tmpdir/dbxinit.$type";
3271
# Remove the old gdbinit file
3272
unlink($dbx_init_file);
3273
if ( $type eq "client" )
3275
# write init file for client
3276
mtr_tofile($dbx_init_file,
3282
# write init file for drizzled
3283
mtr_tofile($dbx_init_file,
3284
"stop in __1cIdrizzledLmysql_parse6Fpn0AHSession_pkcI_v_\n" .
3290
if ( $opt_manual_dbx )
3292
print "\nTo start dbx for $type, type in another window:\n";
3293
print "dbx -c 'source $dbx_init_file' $$exe\n";
3295
# Indicate the exe should not be started
3301
mtr_add_arg($$args, "-title");
3302
mtr_add_arg($$args, "$type");
3303
mtr_add_arg($$args, "-e");
3305
mtr_add_arg($$args, "dbx");
3306
mtr_add_arg($$args, "-c");
3307
mtr_add_arg($$args, "source $dbx_init_file");
3308
mtr_add_arg($$args, "$$exe");
3314
3191
# Modify the exe and args so that program is run in gdb in xterm