mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
WSREP debug log levels support
Global variable wsrep_debug now can be used to filter wsrep-lib messages based on debug level provided. Type of wsrep_debug is now set to be unsigned int, so tests and configuration files changed accordingly.
This commit is contained in:
@ -6,39 +6,41 @@ SET @wsrep_debug_global_saved = @@global.wsrep_debug;
|
||||
# default
|
||||
SELECT @@global.wsrep_debug;
|
||||
@@global.wsrep_debug
|
||||
0
|
||||
NONE
|
||||
|
||||
# scope
|
||||
SELECT @@session.wsrep_debug;
|
||||
ERROR HY000: Variable 'wsrep_debug' is a GLOBAL variable
|
||||
SET @@global.wsrep_debug=OFF;
|
||||
SET @@global.wsrep_debug=0;
|
||||
SELECT @@global.wsrep_debug;
|
||||
@@global.wsrep_debug
|
||||
0
|
||||
SET @@global.wsrep_debug=ON;
|
||||
NONE
|
||||
SET @@global.wsrep_debug=1;
|
||||
SELECT @@global.wsrep_debug;
|
||||
@@global.wsrep_debug
|
||||
1
|
||||
SERVER
|
||||
|
||||
# valid values
|
||||
SET @@global.wsrep_debug='OFF';
|
||||
SET @@global.wsrep_debug=NONE;
|
||||
SELECT @@global.wsrep_debug;
|
||||
@@global.wsrep_debug
|
||||
0
|
||||
SET @@global.wsrep_debug=ON;
|
||||
NONE
|
||||
SET @@global.wsrep_debug=SERVER;
|
||||
SELECT @@global.wsrep_debug;
|
||||
@@global.wsrep_debug
|
||||
1
|
||||
SERVER
|
||||
SET @@global.wsrep_debug=default;
|
||||
SELECT @@global.wsrep_debug;
|
||||
@@global.wsrep_debug
|
||||
0
|
||||
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;
|
||||
|
Reference in New Issue
Block a user