diff options
-rw-r--r-- | mysql-test/r/myisam.result | 6 | ||||
-rw-r--r-- | mysql-test/t/myisam.test | 3 | ||||
-rw-r--r-- | sql/set_var.cc | 4 |
3 files changed, 13 insertions, 0 deletions
diff --git a/mysql-test/r/myisam.result b/mysql-test/r/myisam.result index ccfb223dfcc..0d6a7c4ffc4 100644 --- a/mysql-test/r/myisam.result +++ b/mysql-test/r/myisam.result @@ -2445,3 +2445,9 @@ DROP TABLE t1; SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size; SET myisam_repair_threads=@@global.myisam_repair_threads; End of 5.1 tests +show variables like 'myisam_block_size'; +Variable_name Value +myisam_block_size 1024 +select @@global.myisam_block_size; +@@global.myisam_block_size +1024 diff --git a/mysql-test/t/myisam.test b/mysql-test/t/myisam.test index d498d4e95ad..e912eb754f4 100644 --- a/mysql-test/t/myisam.test +++ b/mysql-test/t/myisam.test @@ -1693,3 +1693,6 @@ SET myisam_sort_buffer_size=@@global.myisam_sort_buffer_size; SET myisam_repair_threads=@@global.myisam_repair_threads; --echo End of 5.1 tests + +show variables like 'myisam_block_size'; +select @@global.myisam_block_size; diff --git a/sql/set_var.cc b/sql/set_var.cc index 9c977d770a1..f5ab86a16a8 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -469,6 +469,10 @@ static sys_var_thd_enum sys_myisam_stats_method(&vars, "myisam_stats_met &myisam_stats_method_typelib, NULL); +static sys_var_const sys_myisam_block_size(&vars, "myisam_block_size", + OPT_GLOBAL, SHOW_LONG, + (uchar*) &myisam_block_size); + #ifdef __NT__ /* purecov: begin inspected */ static sys_var_const sys_named_pipe(&vars, "named_pipe", |