diff options
Diffstat (limited to 'mysql-test/suite/sys_vars/t/innodb_doublewrite_batch_size_basic.test')
-rw-r--r-- | mysql-test/suite/sys_vars/t/innodb_doublewrite_batch_size_basic.test | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/suite/sys_vars/t/innodb_doublewrite_batch_size_basic.test b/mysql-test/suite/sys_vars/t/innodb_doublewrite_batch_size_basic.test new file mode 100644 index 00000000000..ccdab532737 --- /dev/null +++ b/mysql-test/suite/sys_vars/t/innodb_doublewrite_batch_size_basic.test @@ -0,0 +1,22 @@ +--source include/have_innodb.inc +--source include/have_debug.inc + +# +# exists as global only +# +select @@global.innodb_doublewrite_batch_size between 1 and 127; +select @@global.innodb_doublewrite_batch_size; +--error ER_INCORRECT_GLOBAL_LOCAL_VAR +select @@session.innodb_doublewrite_batch_size; +show global variables like 'innodb_doublewrite_batch_size'; +show session variables like 'innodb_doublewrite_batch_size'; +select * from information_schema.global_variables where variable_name='innodb_doublewrite_batch_size'; +select * from information_schema.session_variables where variable_name='innodb_doublewrite_batch_size'; + +# +# show that it's read-only +# +--error ER_INCORRECT_GLOBAL_LOCAL_VAR +set global innodb_doublewrite_batch_size=1; +--error ER_INCORRECT_GLOBAL_LOCAL_VAR +set @@session.innodb_doublewrite_batch_size='some'; |