mirror of
https://github.com/MariaDB/server.git
synced 2025-02-09 23:24:11 +01:00
![Jan Lindström](/assets/img/avatar_default.png)
There were multiple problems here * wsrep_trx_fragment_size should not be set when wsrep is disabled or provider is not loaded * wsrep_trx_fragment_unit should not be set when wsrep is disabled or provider is not loaded * wsrep_debug has no effect if wsrep is disabled or provider is not loaded * wsrep_start_position should not be set when wsrep is disabled or provider is not loaded any other value than default * wsrep_start_position should be changed only when we are joiner or initialized * wsrep_start_position should be allowed to set only a value that exits, thus we need to add error handling to wsrep_sst_complete
51 lines
1.3 KiB
Text
51 lines
1.3 KiB
Text
#
|
|
# wsrep_debug
|
|
#
|
|
# save the initial value
|
|
SET @wsrep_debug_global_saved = @@global.wsrep_debug;
|
|
# default
|
|
SELECT @@global.wsrep_debug;
|
|
@@global.wsrep_debug
|
|
NONE
|
|
|
|
# scope
|
|
SELECT @@session.wsrep_debug;
|
|
ERROR HY000: Variable 'wsrep_debug' is a GLOBAL variable
|
|
SET @@global.wsrep_debug=0;
|
|
SELECT @@global.wsrep_debug;
|
|
@@global.wsrep_debug
|
|
NONE
|
|
SET @@global.wsrep_debug=1;
|
|
Warnings:
|
|
Warning 1231 Setting 'wsrep_debug' has no effect because wsrep is switched off
|
|
SELECT @@global.wsrep_debug;
|
|
@@global.wsrep_debug
|
|
NONE
|
|
|
|
# valid values
|
|
SET @@global.wsrep_debug=NONE;
|
|
SELECT @@global.wsrep_debug;
|
|
@@global.wsrep_debug
|
|
NONE
|
|
SET @@global.wsrep_debug=SERVER;
|
|
Warnings:
|
|
Warning 1231 Setting 'wsrep_debug' has no effect because wsrep is switched off
|
|
SELECT @@global.wsrep_debug;
|
|
@@global.wsrep_debug
|
|
NONE
|
|
SET @@global.wsrep_debug=default;
|
|
SELECT @@global.wsrep_debug;
|
|
@@global.wsrep_debug
|
|
NONE
|
|
|
|
# invalid values
|
|
SET @@global.wsrep_debug=NULL;
|
|
ERROR 42000: Variable 'wsrep_debug' can't be set to the value of 'NULL'
|
|
SET @@global.wsrep_debug='junk';
|
|
ERROR 42000: Variable 'wsrep_debug' can't be set to the value of 'junk'
|
|
SET @@global.wsrep_debug=ON;
|
|
ERROR 42000: Variable 'wsrep_debug' can't be set to the value of 'ON'
|
|
|
|
# restore the initial value
|
|
SET @@global.wsrep_debug = @wsrep_debug_global_saved;
|
|
# End of test
|