Skip to content

Commit

Permalink
BUG#27807237: MTR --MANUAL-BOOT-GDB FAILS ON MYSQL-5.7 BUILDS
Browse files Browse the repository at this point in the history
Description:
------------
MTR --manual-boot-gdb fails on mysql-5.7 builds.

Issue:
------
When --manual-boot-gdb option is enabled, mysql and test directories
are not created, causing the 'mysqld --bootstap' command to fail.

Fix:
----
Create the directories for mysql and test database under datadir
location before invoking gdb for mysqld bootstrap.

Change-Id: I14a8560a3c16fde2f10910375a7e3bbef3d6bc0e
  • Loading branch information
Pavan Naik committed May 28, 2018
1 parent 0f79680 commit a152d9f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mysql-test/mysql-test-run.pl
Original file line number Diff line number Diff line change
Expand Up @@ -4040,6 +4040,10 @@ sub mysql_install_db {
mtr_tofile($bootstrap_sql_file,
sql_to_bootstrap(mtr_grab_file("include/mtr_check.sql")));

# Create directories mysql and test
mkpath("$install_datadir/mysql");
mkpath("$install_datadir/test");

if ( $opt_manual_boot_gdb )
{
# The configuration has been set up and user has been prompted for
Expand All @@ -4055,10 +4059,6 @@ sub mysql_install_db {
mtr_tofile($path_bootstrap_log,
"$exe_mysqld_bootstrap " . join(" ", @$args) . "\n");

# Create directories mysql and test
mkpath("$install_datadir/mysql");
mkpath("$install_datadir/test");

if ( My::SafeProcess->run
(
name => "bootstrap",
Expand Down

0 comments on commit a152d9f

Please sign in to comment.