1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-6676: Optimistic parallel replication

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.
This commit is contained in:
Kristian Nielsen
2015-02-06 10:02:02 +01:00
parent 734c4c0143
commit 8672339328
41 changed files with 243 additions and 265 deletions

View File

@ -0,0 +1,14 @@
--source include/not_embedded.inc
--error ER_INCORRECT_GLOBAL_LOCAL_VAR
SELECT @@global.skip_parallel_replication;
--error ER_LOCAL_VARIABLE
SET GLOBAL skip_parallel_replication= 0;
SELECT @@session.skip_parallel_replication;
SET SESSION skip_parallel_replication= 1;
SELECT @@session.skip_parallel_replication;
SET SESSION skip_parallel_replication= 0;
SELECT @@session.skip_parallel_replication;
# More testing of the actual functionality in rpl.rpl_parallel_* tests.