Skip to content

Commit dea5430

Browse files
author
Deepa Dixit
committed
Bug#18184868: CANNOT USE BOOTSTRAP VARIABLES IN -MASTER.OPT FILE
Post-push fix: Bootstrap.sql was not being deleted after server initialization during parallel runs, because MTR was looking for it in the wrong location. This commit fixes the problem. Reviewed-by: Pavan Naik <[email protected]>
1 parent bbef647 commit dea5430

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mysql-test/mysql-test-run.pl

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6573,12 +6573,11 @@ ($)
65736573
{
65746574
clean_dir($datadir);
65756575
mysql_install_db($mysqld, $datadir, $bootstrap_opts);
6576-
my $vardir_path= ($opt_parallel == 1) ? "$opt_vardir" : "$opt_vardir/..";
65776576

65786577
# Remove the bootstrap.sql file so that a duplicate set of
65796578
# SQL statements do not get written to the same file.
6580-
unlink("$vardir_path/tmp/bootstrap.sql")
6581-
if (-f "$vardir_path/tmp/bootstrap.sql");
6579+
unlink("$opt_vardir/tmp/bootstrap.sql")
6580+
if (-f "$opt_vardir/tmp/bootstrap.sql");
65826581
}
65836582

65846583
# Create the servers tmpdir

0 commit comments

Comments
 (0)