mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Fixes for three test failures:
- sys_vars.all_vars: Added test case for slave_type_conversions variable - rpl_row_idempotency Removed ER_SLAVE_AMBIGOUS_EXEC_MODE (which was removed by WL 4738) from the test case. Using ER_WRONG_VALUE_FOR_VAR instead. - mysqld--help-win Added missing help for --slave-type-conversions from the result file.
This commit is contained in:
@@ -622,6 +622,12 @@ The following options may be given as the first argument:
|
|||||||
Number of times the slave SQL thread will retry a
|
Number of times the slave SQL thread will retry a
|
||||||
transaction in case it failed with a deadlock or elapsed
|
transaction in case it failed with a deadlock or elapsed
|
||||||
lock wait timeout, before giving up and stopping
|
lock wait timeout, before giving up and stopping
|
||||||
|
--slave-type-conversions=name
|
||||||
|
Set of slave type conversions that are enabled. Legal
|
||||||
|
values are: ALL_LOSSY to enable lossy conversions and
|
||||||
|
ALL_NON_LOSSY to enable non-lossy conversions. If the
|
||||||
|
variable is assigned the empty set, no conversions are
|
||||||
|
allowed and it is expected that the types match exactly.
|
||||||
--slow-launch-time=#
|
--slow-launch-time=#
|
||||||
If creating the thread takes longer than this value (in
|
If creating the thread takes longer than this value (in
|
||||||
seconds), the Slow_launch_threads counter will be
|
seconds), the Slow_launch_threads counter will be
|
||||||
|
@@ -46,7 +46,7 @@ a b
|
|||||||
set global slave_exec_mode='IDEMPOTENT';
|
set global slave_exec_mode='IDEMPOTENT';
|
||||||
set global slave_exec_mode='STRICT';
|
set global slave_exec_mode='STRICT';
|
||||||
set global slave_exec_mode='IDEMPOTENT,STRICT';
|
set global slave_exec_mode='IDEMPOTENT,STRICT';
|
||||||
ERROR HY000: Ambiguous slave modes combination.
|
ERROR 42000: Variable 'slave_exec_mode' can't be set to the value of 'IDEMPOTENT,STRICT'
|
||||||
select @@global.slave_exec_mode /* must be STRICT */;
|
select @@global.slave_exec_mode /* must be STRICT */;
|
||||||
@@global.slave_exec_mode
|
@@global.slave_exec_mode
|
||||||
STRICT
|
STRICT
|
||||||
|
@@ -90,7 +90,7 @@ set global slave_exec_mode='IDEMPOTENT';
|
|||||||
set global slave_exec_mode='STRICT';
|
set global slave_exec_mode='STRICT';
|
||||||
|
|
||||||
# checking mutual exclusion for the options
|
# checking mutual exclusion for the options
|
||||||
--error ER_SLAVE_AMBIGOUS_EXEC_MODE
|
--error ER_WRONG_VALUE_FOR_VAR
|
||||||
set global slave_exec_mode='IDEMPOTENT,STRICT';
|
set global slave_exec_mode='IDEMPOTENT,STRICT';
|
||||||
|
|
||||||
select @@global.slave_exec_mode /* must be STRICT */;
|
select @@global.slave_exec_mode /* must be STRICT */;
|
||||||
|
@@ -0,0 +1,26 @@
|
|||||||
|
set @saved_slave_type_conversions = @@global.slave_type_conversions;
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
@@global.slave_type_conversions
|
||||||
|
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='';
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
@@global.slave_type_conversions
|
||||||
|
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='ALL_NON_LOSSY';
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
@@global.slave_type_conversions
|
||||||
|
ALL_NON_LOSSY
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='ALL_LOSSY';
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
@@global.slave_type_conversions
|
||||||
|
ALL_LOSSY
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='ALL_LOSSY,ALL_NON_LOSSY';
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
@@global.slave_type_conversions
|
||||||
|
ALL_LOSSY,ALL_NON_LOSSY
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='ALL_LOSSY,ALL_NON_LOSSY,NONEXISTING_BIT';
|
||||||
|
ERROR 42000: Variable 'slave_type_conversions' can't be set to the value of 'NONEXISTING_BIT'
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
@@global.slave_type_conversions
|
||||||
|
ALL_LOSSY,ALL_NON_LOSSY
|
||||||
|
set global slave_type_conversions = @saved_slave_type_conversions;
|
@@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
set @saved_slave_type_conversions = @@global.slave_type_conversions;
|
||||||
|
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='';
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='ALL_NON_LOSSY';
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='ALL_LOSSY';
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='ALL_LOSSY,ALL_NON_LOSSY';
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
|
||||||
|
# checking that setting variable to a non existing value raises error
|
||||||
|
--error ER_WRONG_VALUE_FOR_VAR
|
||||||
|
SET GLOBAL SLAVE_TYPE_CONVERSIONS='ALL_LOSSY,ALL_NON_LOSSY,NONEXISTING_BIT';
|
||||||
|
SELECT @@global.slave_type_conversions;
|
||||||
|
|
||||||
|
set global slave_type_conversions = @saved_slave_type_conversions;
|
Reference in New Issue
Block a user