mirror of
https://github.com/MariaDB/server.git
synced 2025-02-12 00:15:35 +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
30 lines
958 B
Text
30 lines
958 B
Text
--source include/have_wsrep.inc
|
|
--source include/have_innodb.inc
|
|
|
|
SELECT @@wsrep_on;
|
|
|
|
SET @wsrep_slave_threads_global_saved = @@global.wsrep_slave_threads;
|
|
SET @wsrep_debug_saved = @@global.wsrep_debug;
|
|
|
|
--error ER_WRONG_ARGUMENTS
|
|
SET SESSION wsrep_trx_fragment_size=DEFAULT;
|
|
SELECT @@session.wsrep_trx_fragment_size;
|
|
--error ER_WRONG_VALUE_FOR_VAR
|
|
SET GLOBAL wsrep_start_position='12345678-1234-1234-1234-123456789012:100';
|
|
SHOW WARNINGS;
|
|
SELECT @@global.wsrep_start_position;
|
|
SET GLOBAL wsrep_debug=1;
|
|
SELECT @@global.wsrep_debug;
|
|
SET GLOBAL wsrep_slave_threads=5;
|
|
SELECT @@global.wsrep_slave_threads;
|
|
--error ER_WRONG_ARGUMENTS
|
|
SET GLOBAL wsrep_desync=1;
|
|
SELECT @@global.wsrep_desync;
|
|
--error ER_WRONG_ARGUMENTS
|
|
SET SESSION wsrep_trx_fragment_unit='rows';
|
|
SELECT @@session.wsrep_trx_fragment_unit;
|
|
|
|
--disable_query_log
|
|
SET @@global.wsrep_slave_threads = @wsrep_slave_threads_global_saved;
|
|
SET @@global.wsrep_debug = @wsrep_debug_saved;
|
|
--enable_query_log
|