Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
3b267eb6
Commit
3b267eb6
authored
Feb 06, 2015
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after-merge fixes for test cases
parent
2a1470a0
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
27 additions
and
50 deletions
+27
-50
mysql-test/suite/sys_vars/r/sysvars_wsrep.result
mysql-test/suite/sys_vars/r/sysvars_wsrep.result
+3
-3
mysql-test/suite/sys_vars/r/wsrep_causal_reads_basic.result
mysql-test/suite/sys_vars/r/wsrep_causal_reads_basic.result
+14
-0
mysql-test/suite/sys_vars/r/wsrep_data_home_dir_basic.result
mysql-test/suite/sys_vars/r/wsrep_data_home_dir_basic.result
+3
-27
mysql-test/suite/sys_vars/t/sysvars_wsrep.test
mysql-test/suite/sys_vars/t/sysvars_wsrep.test
+2
-0
mysql-test/suite/sys_vars/t/wsrep_data_home_dir_basic.test
mysql-test/suite/sys_vars/t/wsrep_data_home_dir_basic.test
+4
-17
sql/sys_vars.cc
sql/sys_vars.cc
+1
-3
No files found.
mysql-test/suite/sys_vars/r/sysvars_wsrep.result
View file @
3b267eb6
...
...
@@ -22,7 +22,7 @@ GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE OFF
VARIABLE_SCOPE SESSION
VARIABLE_TYPE BOOLEAN
VARIABLE_COMMENT
(DEPRECATED)
Setting this variable is equivalent to setting wsrep_sync_wait READ flag
VARIABLE_COMMENT Setting this variable is equivalent to setting wsrep_sync_wait READ flag
NUMERIC_MIN_VALUE NULL
NUMERIC_MAX_VALUE NULL
NUMERIC_BLOCK_SIZE NULL
...
...
@@ -87,9 +87,9 @@ READ_ONLY NO
COMMAND_LINE_ARGUMENT OPTIONAL
VARIABLE_NAME WSREP_DATA_HOME_DIR
SESSION_VALUE NULL
GLOBAL_VALUE
GLOBAL_VALUE
DATADIR
GLOBAL_VALUE_ORIGIN COMPILE-TIME
DEFAULT_VALUE
DEFAULT_VALUE
DATADIR
VARIABLE_SCOPE GLOBAL
VARIABLE_TYPE VARCHAR
VARIABLE_COMMENT home directory for wsrep provider
...
...
mysql-test/suite/sys_vars/r/wsrep_causal_reads_basic.result
View file @
3b267eb6
...
...
@@ -14,22 +14,32 @@ SELECT @@session.wsrep_causal_reads;
# scope and valid values
SET @@global.wsrep_causal_reads=OFF;
Warnings:
Warning 1287 '@@wsrep_causal_reads' is deprecated and will be removed in a future release. Please use '@@wsrep_sync_wait=1' instead
SELECT @@global.wsrep_causal_reads;
@@global.wsrep_causal_reads
0
SET @@global.wsrep_causal_reads=ON;
Warnings:
Warning 1287 '@@wsrep_causal_reads' is deprecated and will be removed in a future release. Please use '@@wsrep_sync_wait=1' instead
SELECT @@global.wsrep_causal_reads;
@@global.wsrep_causal_reads
1
SET @@session.wsrep_causal_reads=OFF;
Warnings:
Warning 1287 '@@wsrep_causal_reads' is deprecated and will be removed in a future release. Please use '@@wsrep_sync_wait=1' instead
SELECT @@session.wsrep_causal_reads;
@@session.wsrep_causal_reads
0
SET @@session.wsrep_causal_reads=ON;
Warnings:
Warning 1287 '@@wsrep_causal_reads' is deprecated and will be removed in a future release. Please use '@@wsrep_sync_wait=1' instead
SELECT @@session.wsrep_causal_reads;
@@session.wsrep_causal_reads
1
SET @@session.wsrep_causal_reads=default;
Warnings:
Warning 1287 '@@wsrep_causal_reads' is deprecated and will be removed in a future release. Please use '@@wsrep_sync_wait=1' instead
SELECT @@session.wsrep_causal_reads;
@@session.wsrep_causal_reads
1
...
...
@@ -46,5 +56,9 @@ ERROR 42000: Variable 'wsrep_causal_reads' can't be set to the value of 'junk'
# restore the initial values
SET @@global.wsrep_causal_reads = @wsrep_causal_reads_global_saved;
Warnings:
Warning 1287 '@@wsrep_causal_reads' is deprecated and will be removed in a future release. Please use '@@wsrep_sync_wait=1' instead
SET @@session.wsrep_causal_reads = @wsrep_causal_reads_session_saved;
Warnings:
Warning 1287 '@@wsrep_causal_reads' is deprecated and will be removed in a future release. Please use '@@wsrep_sync_wait=1' instead
# End of test
mysql-test/suite/sys_vars/r/wsrep_data_home_dir_basic.result
View file @
3b267eb6
...
...
@@ -4,45 +4,21 @@
# default
SELECT @@global.wsrep_data_home_dir;
@@global.wsrep_data_home_dir
DATADIR
# scope
SELECT @@session.wsrep_data_home_dir;
ERROR HY000: Variable 'wsrep_data_home_dir' is a GLOBAL variable
SET @@global.wsrep_data_home_dir='/tmp/data';
ERROR HY000: Variable 'wsrep_data_home_dir' is a read only variable
SELECT @@global.wsrep_data_home_dir;
@@global.wsrep_data_home_dir
# valid values
SET @@global.wsrep_data_home_dir='/tmp/data';
ERROR HY000: Variable 'wsrep_data_home_dir' is a read only variable
SELECT @@global.wsrep_data_home_dir;
@@global.wsrep_data_home_dir
SET @@global.wsrep_data_home_dir=junk-dir;
ERROR HY000: Variable 'wsrep_data_home_dir' is a read only variable
SELECT @@global.wsrep_data_home_dir;
@@global.wsrep_data_home_dir
SET @@global.wsrep_data_home_dir=junk/dir;
ERROR HY000: Variable 'wsrep_data_home_dir' is a read only variable
SELECT @@global.wsrep_data_home_dir;
@@global.wsrep_data_home_dir
SET @@global.wsrep_data_home_dir=OFF;
ERROR HY000: Variable 'wsrep_data_home_dir' is a read only variable
SELECT @@global.wsrep_data_home_dir;
@@global.wsrep_data_home_dir
DATADIR
SET @@global.wsrep_data_home_dir=default;
ERROR HY000: Variable 'wsrep_data_home_dir' is a read only variable
SELECT @@global.wsrep_data_home_dir;
@@global.wsrep_data_home_dir
# invalid values
SET @@global.wsrep_data_home_dir=NULL;
ERROR HY000: Variable 'wsrep_data_home_dir' is a read only variable
DATADIR
# End of test
mysql-test/suite/sys_vars/t/sysvars_wsrep.test
View file @
3b267eb6
--
source
include
/
have_wsrep
.
inc
--
source
include
/
word_size
.
inc
--
let
$datadir
=
`SELECT @@datadir`
--
replace_result
$datadir
DATADIR
--
vertical_results
select
*
from
information_schema
.
system_variables
where
variable_name
like
'wsrep%'
...
...
mysql-test/suite/sys_vars/t/wsrep_data_home_dir_basic.test
View file @
3b267eb6
--
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
sql/sys_vars.cc
View file @
3b267eb6
...
...
@@ -984,10 +984,8 @@ static bool check_master_connection(sys_var *self, THD *thd, set_var *var)
tmp
.
str
=
var
->
save_result
.
string_value
.
str
;
tmp
.
length
=
var
->
save_result
.
string_value
.
length
;
if
(
!
tmp
.
str
||
check_master_connection_name
(
&
tmp
))
{
my_error
(
ER_WRONG_ARGUMENTS
,
MYF
(
0
),
var
->
var
->
name
.
str
);
return
true
;
}
return
false
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment