Skip to content

Commit

Permalink
MDEV-8576: Bootstrap should ignore --enforce-storage-engine option
Browse files Browse the repository at this point in the history
Allow enforce-storage-engine="" option and use that on mysql_install_db
when doing bootstrap.
  • Loading branch information
Jan Lindström committed Sep 16, 2015
1 parent bb52905 commit 173e486
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/mysql_install_db.pl.in
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,7 @@ my $mysqld_install_cmd_line = quote_options($mysqld_bootstrap,
"--max_allowed_packet=8M",
"--default-storage-engine=MyISAM",
"--net_buffer_length=16K",
"--enforce-storage-engine=\"\"",
@args,
);

Expand Down
2 changes: 1 addition & 1 deletion scripts/mysql_install_db.sh
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ mysqld_bootstrap="${MYSQLD_BOOTSTRAP-$mysqld}"
mysqld_install_cmd_line()
{
"$mysqld_bootstrap" $defaults "$mysqld_opt" --bootstrap \
"--basedir=$basedir" "--datadir=$ldata" --log-warnings=0 \
"--basedir=$basedir" "--datadir=$ldata" --log-warnings=0 --enforce-storage-engine="" \
$args --max_allowed_packet=8M \
--net_buffer_length=16K
}
Expand Down
3 changes: 3 additions & 0 deletions sql/mysqld.cc
Original file line number Diff line number Diff line change
Expand Up @@ -5293,6 +5293,9 @@ static int init_server_components()
if (default_tmp_storage_engine && !*default_tmp_storage_engine)
default_tmp_storage_engine= NULL;

if (enforced_storage_engine && !*enforced_storage_engine)
enforced_storage_engine= NULL;

if (init_default_storage_engine(default_tmp_storage_engine, tmp_table_plugin))
unireg_abort(1);

Expand Down

0 comments on commit 173e486

Please sign in to comment.