-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
27 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 4 additions & 17 deletions
21
mysql-test/suite/sys_vars/t/wsrep_data_home_dir_basic.test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,28 @@ | ||
--source include/have_wsrep.inc | ||
--let $datadir = `SELECT @@datadir` | ||
|
||
--echo # | ||
--echo # wsrep_data_home_dir (readonly) | ||
--echo # | ||
|
||
--echo # default | ||
--replace_result $datadir DATADIR | ||
SELECT @@global.wsrep_data_home_dir; | ||
|
||
--echo | ||
--echo # scope | ||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
SELECT @@session.wsrep_data_home_dir; | ||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
SET @@global.wsrep_data_home_dir='/tmp/data'; | ||
SELECT @@global.wsrep_data_home_dir; | ||
|
||
--echo | ||
--echo # valid values | ||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
SET @@global.wsrep_data_home_dir='/tmp/data'; | ||
SELECT @@global.wsrep_data_home_dir; | ||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
SET @@global.wsrep_data_home_dir=junk-dir; | ||
SELECT @@global.wsrep_data_home_dir; | ||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
SET @@global.wsrep_data_home_dir=junk/dir; | ||
SELECT @@global.wsrep_data_home_dir; | ||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
SET @@global.wsrep_data_home_dir=OFF; | ||
--replace_result $datadir DATADIR | ||
SELECT @@global.wsrep_data_home_dir; | ||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
SET @@global.wsrep_data_home_dir=default; | ||
--replace_result $datadir DATADIR | ||
SELECT @@global.wsrep_data_home_dir; | ||
|
||
--echo | ||
--echo # invalid values | ||
--error ER_INCORRECT_GLOBAL_LOCAL_VAR | ||
SET @@global.wsrep_data_home_dir=NULL; | ||
|
||
--echo # End of test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters