summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2016-09-15 21:56:01 +0300
committerMonty <monty@mariadb.org>2016-09-15 21:56:01 +0300
commit7ca60dd842dbcfcc76e7b10017dfc6be3a3b64ac (patch)
tree647112033b9fb44e3c2669b00ae4b885243560f6
parent55eb6fa5dafa18c5e826e6d924a1ffd7eb73b389 (diff)
downloadmariadb-git-7ca60dd842dbcfcc76e7b10017dfc6be3a3b64ac.tar.gz
Test case for fix assertion/hang in read_init_file()
-rw-r--r--mysql-test/t/init_file.opt2
-rw-r--r--sql/mysqld.cc3
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)