summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-08-02 16:56:32 +0500
committerunknown <ramil/ram@ramil.myoffice.izhnet.ru>2007-08-02 16:56:32 +0500
commit2a20aa7f8a9e1214b147fcf6a86b8f4802e10919 (patch)
tree156d08e52b1193e26302fc8783763c2685ab2975
parent8b9e7c14db0bde6350e9376869cb45d30762023f (diff)
parent1281fbc58c139b90a329ae3519f46d2b0b75a249 (diff)
downloadmariadb-git-2a20aa7f8a9e1214b147fcf6a86b8f4802e10919.tar.gz
Merge mysql.com:/home/ram/work/b30088/b30088.5.0
into mysql.com:/home/ram/work/b30088/b30088.5.1 sql/mysqld.cc: Auto merged mysql-test/t/show_check.test: SCCS merged
-rw-r--r--mysql-test/t/show_check-master.opt2
-rw-r--r--mysql-test/t/show_check.test5
-rw-r--r--sql/mysqld.cc7
3 files changed, 12 insertions, 2 deletions
diff --git a/mysql-test/t/show_check-master.opt b/mysql-test/t/show_check-master.opt
index 3eb98fc3d6b..7a438da06cc 100644
--- a/mysql-test/t/show_check-master.opt
+++ b/mysql-test/t/show_check-master.opt
@@ -1 +1 @@
---log-slow-queries --log-long-format --log-queries-not-using-indexes
+--log-slow-queries --log-long-format --log-queries-not-using-indexes --myisam-recover=""
diff --git a/mysql-test/t/show_check.test b/mysql-test/t/show_check.test
index a4cd8d323f9..34e1941c9d7 100644
--- a/mysql-test/t/show_check.test
+++ b/mysql-test/t/show_check.test
@@ -903,6 +903,11 @@ show variables like "log_queries_not_using_indexes";
select 1 from information_schema.tables limit 1;
show status like 'slow_queries';
+#
+# Bug #30088: Can't disable myisam-recover by a value of ""
+#
+show variables like 'myisam_recover_options';
+
--echo End of 5.0 tests
--disable_result_log
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index 5e2139acd91..536d3d95933 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -7627,11 +7627,16 @@ get_one_option(int optid, const struct my_option *opt __attribute__((unused)),
#endif
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;