mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
Adjust the configuration options, as discussed on the maria-developers@ mailing list. The option to hint a transaction to not be replicated in parallel is now called @@skip_parallel_replication, consistent with @@skip_replication. And the --slave-parallel-mode is now simplified to have just one of the following values: none minimal conservative optimistic aggressive This reflects successively harder efforts to find opportunities to run things in parallel on the slave. It allows to extend the server with more automatic heuristics in the future without having to introduce a new configuration option for each and every one.
35 lines
1.0 KiB
Plaintext
35 lines
1.0 KiB
Plaintext
--source include/not_embedded.inc
|
|
|
|
# Also tests some command line options, in slave_parallel_mode_basic-master.opt
|
|
|
|
--error ER_GLOBAL_VARIABLE
|
|
SET SESSION slave_parallel_mode= none;
|
|
|
|
SELECT @@slave_parallel_mode;
|
|
SELECT @@m1.slave_parallel_mode;
|
|
|
|
CHANGE MASTER TO master_host='127.0.0.1', master_port=3310, master_user='root';
|
|
SELECT @@``.slave_parallel_mode;
|
|
SELECT @@slave_parallel_mode;
|
|
--let $status_items= Parallel_Mode
|
|
--source include/show_slave_status.inc
|
|
|
|
SELECT @@m2.slave_parallel_mode;
|
|
SET GLOBAL m2.slave_parallel_mode = none;
|
|
|
|
CHANGE MASTER 'm1' TO master_host='127.0.0.1', master_port=3311, master_user='root';
|
|
SELECT @@m1.slave_parallel_mode;
|
|
--source include/show_slave_status.inc
|
|
SET GLOBAL m1.slave_parallel_mode= conservative;
|
|
--source include/show_slave_status.inc
|
|
SET default_master_connection= 'm1';
|
|
SELECT @@slave_parallel_mode;
|
|
SET GLOBAL slave_parallel_mode= aggressive;
|
|
SELECT @@slave_parallel_mode;
|
|
--source include/show_slave_status.inc
|
|
SET default_master_connection= '';
|
|
SELECT @@slave_parallel_mode;
|
|
|
|
RESET SLAVE ALL;
|
|
RESET SLAVE 'm1' ALL;
|