mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
MDEV-6368: assertion xid_seqno > trx_sys_cur_xid_seqno
- Validate the specified wsrep_start_position value by also checking the return status of wsrep->sst_received. This also ensures that changes in wsrep_start_position is not allowed when the node is not in JOINING state. - Do not allow decrease in seqno within same UUID. - The initial checkpoint in SEs should be [0...:-1].
This commit is contained in:
@@ -19,8 +19,6 @@ SELECT @@global.wsrep_start_position;
|
||||
|
||||
--echo
|
||||
--echo # valid values
|
||||
SET @@global.wsrep_start_position='00000000-0000-0000-0000-000000000000:-2';
|
||||
SELECT @@global.wsrep_start_position;
|
||||
SET @@global.wsrep_start_position='12345678-1234-1234-1234-123456789012:100';
|
||||
SELECT @@global.wsrep_start_position;
|
||||
SET @@global.wsrep_start_position=default;
|
||||
@@ -28,6 +26,10 @@ SELECT @@global.wsrep_start_position;
|
||||
|
||||
--echo
|
||||
--echo # invalid values
|
||||
call mtr.add_suppression("WSREP: SST postion can't be set in past.*");
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@global.wsrep_start_position='00000000-0000-0000-0000-000000000000:-2';
|
||||
SELECT @@global.wsrep_start_position;
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
SET @@global.wsrep_start_position='000000000000000-0000-0000-0000-000000000000:-1';
|
||||
--error ER_WRONG_VALUE_FOR_VAR
|
||||
|
||||
Reference in New Issue
Block a user