1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Fix for bug #30088: Can't disable myisam-recover by a value of "".

- test result.

Problem: we don't proper handle "" value of the --myisam-recover option.

Fix: turn off myisam recovering if --myisam-recover="" is set.
This commit is contained in:
ramil/ram@mysql.com/ramil.myoffice.izhnet.ru
2007-08-01 11:41:13 +05:00
parent 3e7caa131c
commit c62d7528c8
4 changed files with 15 additions and 2 deletions

View File

@ -7241,11 +7241,16 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
#endif /* HAVE_INNOBASE_DB */
case OPT_MYISAM_RECOVER:
{
if (!argument || !argument[0])
if (!argument)
{
myisam_recover_options= HA_RECOVER_DEFAULT;
myisam_recover_options_str= myisam_recover_typelib.type_names[0];
}
else if (!argument[0])
{
myisam_recover_options= HA_RECOVER_NONE;
myisam_recover_options_str= "OFF";
}
else
{
myisam_recover_options_str=argument;