1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +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:
mkaruza
2019-02-12 12:32:42 +01:00
parent c2c637c583
commit 3e64e7f24c
16 changed files with 52 additions and 34 deletions

View File

@ -14,16 +14,16 @@ SELECT @@global.wsrep_debug;
--echo # scope
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@session.wsrep_debug;
SET @@global.wsrep_debug=OFF;
SET @@global.wsrep_debug=0;
SELECT @@global.wsrep_debug;
SET @@global.wsrep_debug=ON;
SET @@global.wsrep_debug=1;
SELECT @@global.wsrep_debug;
--echo
--echo # valid values
SET @@global.wsrep_debug='OFF';
SET @@global.wsrep_debug=NONE;
SELECT @@global.wsrep_debug;
SET @@global.wsrep_debug=ON;
SET @@global.wsrep_debug=SERVER;
SELECT @@global.wsrep_debug;
SET @@global.wsrep_debug=default;
SELECT @@global.wsrep_debug;
@ -34,6 +34,8 @@ SELECT @@global.wsrep_debug;
SET @@global.wsrep_debug=NULL;
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.wsrep_debug='junk';
--error ER_WRONG_VALUE_FOR_VAR
SET @@global.wsrep_debug=ON;
--echo
--echo # restore the initial value