mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 20:07:13 +02:00
Problem:-
The condition that checks for node readiness is too strict as it does
not allow SELECTs even if these selects do not access any tables.
For example,if we run
SELECT 1;
OR
SELECT @@max_allowed_packet;
Solution:-
We need not to report this error when all_tables(lex->query_tables)
is NULL:
16 lines
581 B
Text
16 lines
581 B
Text
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
|
SET GLOBAL wsrep_provider_options='gmcast.isolate=1';
|
|
SET SESSION wsrep_on = OFF;
|
|
SET SESSION wsrep_on = ON;
|
|
SET global wsrep_sync_wait=0;
|
|
START SLAVE;
|
|
include/wait_for_slave_param.inc [Slave_IO_Running]
|
|
SET GLOBAL wsrep_provider_options='gmcast.isolate=0';
|
|
include/wait_for_slave_to_start.inc
|
|
INSERT INTO t1 VALUES (1);
|
|
DROP TABLE t1;
|
|
SET global wsrep_sync_wait=7;
|
|
STOP SLAVE;
|
|
RESET SLAVE ALL;
|
|
CALL mtr.add_suppression('failed registering on master');
|
|
CALL mtr.add_suppression('You need to use --log-bin to make --binlog-format work');
|