mirror of
https://github.com/MariaDB/server.git
synced 2025-02-15 01:45:33 +01:00
2988db1cd9
Do not compile wsrep_provider plugin if WITH_WSREP is not enabled. We should not enable wsrep_provider plugin if WSREP_ON=OFF and at that case we can only print information that Plugin 'wsrep-provider' is disabled. Make sure tests require Galera library 26.4.14 if needed.
24 lines
1 KiB
Text
24 lines
1 KiB
Text
# Correct Galera library found
|
|
CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB;
|
|
SET GLOBAL wsrep_provider_repl_max_ws_size=1;
|
|
SHOW VARIABLES LIKE 'wsrep_provider_repl_max_ws_size';
|
|
Variable_name Value
|
|
wsrep_provider_repl_max_ws_size 1
|
|
INSERT INTO t1 VALUES (1);
|
|
ERROR HY000: Maximum writeset size exceeded
|
|
SET GLOBAL wsrep_provider_repl_max_ws_size=DEFAULT;
|
|
SHOW VARIABLES LIKE 'wsrep_provider_repl_max_ws_size';
|
|
Variable_name Value
|
|
wsrep_provider_repl_max_ws_size 2147483647
|
|
INSERT INTO t1 VALUES (1);
|
|
SET GLOBAL wsrep_provider_options='repl.max_ws_size=1';
|
|
ERROR HY000: Variable 'wsrep_provider_options' is a read only variable
|
|
INSERT INTO t1 VALUES (2);
|
|
SET GLOBAL wsrep_provider='none';
|
|
ERROR HY000: Variable 'wsrep_provider' is a read only variable
|
|
DROP TABLE t1;
|
|
CALL mtr.add_suppression("transaction size limit");
|
|
CALL mtr.add_suppression("rbr write fail");
|
|
SELECT VARIABLE_NAME,READ_ONLY FROM information_schema.system_variables where VARIABLE_NAME like '%wsrep_provider_options%';
|
|
VARIABLE_NAME READ_ONLY
|
|
WSREP_PROVIDER_OPTIONS YES
|