Skip to content

Commit df6899b

Browse files
committed
bugfix: mysqld --safe-mode crashes
1 parent d74fee9 commit df6899b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
--myisam-recover-options
1+
--safe-mode

sql/mysqld.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8241,7 +8241,7 @@ mysqld_get_one_option(const struct my_option *opt, const char *argument,
82418241
case (int) OPT_SAFE:
82428242
opt_specialflag|= SPECIAL_SAFE_MODE | SPECIAL_NO_NEW_FUNC;
82438243
SYSVAR_AUTOSIZE(delay_key_write_options, (uint) DELAY_KEY_WRITE_NONE);
8244-
SYSVAR_AUTOSIZE(myisam_recover_options, HA_RECOVER_DEFAULT);
8244+
myisam_recover_options= HA_RECOVER_DEFAULT;
82458245
ha_open_options&= ~(HA_OPEN_DELAY_KEY_WRITE);
82468246
#ifdef HAVE_QUERY_CACHE
82478247
SYSVAR_AUTOSIZE(query_cache_size, 0);

0 commit comments

Comments
 (0)