mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-21 11:30:24 +00:00
Use defaults-file in test config file to simulate user's setup.
This commit is contained in:
@@ -313,6 +313,7 @@ diag(`rm -f $pid_file $log_file $cnf_file >/dev/null 2>&1`);
|
|||||||
|
|
||||||
open my $fh, '>', $cnf_file or die "Error opening $cnf_file: $OS_ERROR";
|
open my $fh, '>', $cnf_file or die "Error opening $cnf_file: $OS_ERROR";
|
||||||
print { $fh } <<EOF;
|
print { $fh } <<EOF;
|
||||||
|
defaults-file=$master_cnf
|
||||||
log-dsn=$slave_dsn,$log_dsn
|
log-dsn=$slave_dsn,$log_dsn
|
||||||
daemonize
|
daemonize
|
||||||
run-time=1
|
run-time=1
|
||||||
@@ -321,8 +322,6 @@ interval=1
|
|||||||
match-db=$target_db
|
match-db=$target_db
|
||||||
pid=$pid_file
|
pid=$pid_file
|
||||||
log=$log_file
|
log=$log_file
|
||||||
--
|
|
||||||
$master_dsn
|
|
||||||
EOF
|
EOF
|
||||||
close $fh;
|
close $fh;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user