From 7ca60dd842dbcfcc76e7b10017dfc6be3a3b64ac Mon Sep 17 00:00:00 2001 From: Monty Date: Thu, 15 Sep 2016 21:56:01 +0300 Subject: Test case for fix assertion/hang in read_init_file() --- mysql-test/t/init_file.opt | 2 +- sql/mysqld.cc | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/mysql-test/t/init_file.opt b/mysql-test/t/init_file.opt index 825311dabf2..f6af01ee2c3 100644 --- a/mysql-test/t/init_file.opt +++ b/mysql-test/t/init_file.opt @@ -1 +1 @@ ---init-file=$MYSQL_TEST_DIR/std_data/init_file.dat +--init-file=$MYSQL_TEST_DIR/std_data/init_file.dat --log-bin=mariadb-bin diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 68587592bc6..105976ddb99 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -6297,7 +6297,8 @@ int mysqld_main(int argc, char **argv) /** Execute all commands from a file. Used by the mysql_install_db script to - create MySQL privilege tables without having to start a full MySQL server. + create MySQL privilege tables without having to start a full MySQL server + and by read_init_file() if mysqld was started with the option --init-file. */ static void bootstrap(MYSQL_FILE *file) -- cgit v1.2.1