mirror of
https://github.com/MariaDB/server.git
synced 2025-12-07 17:42:39 +03:00
The check for streaming replication logging format in THD::decide_logging_format() did the check also for DDLs running in TOI mode. This caused DROP DATABASE to fail if streaming replication was enabled. Added check for THD wsrep execution mode and perform the check only if the THD is in local processing mode (i.e. not TOI). Added galera_sr_create_drop test to verify that CREATE/DROP statements pass even if streaming replication is on.
29 lines
713 B
Plaintext
29 lines
713 B
Plaintext
connection node_2;
|
|
connection node_1;
|
|
SET SESSION wsrep_trx_fragment_size=1;
|
|
CREATE TABLE t1 (f1 INT PRIMARY KEY) ENGINE=InnoDB;
|
|
connection node_2;
|
|
SHOW CREATE TABLE t1;
|
|
Table Create Table
|
|
t1 CREATE TABLE `t1` (
|
|
`f1` int(11) NOT NULL,
|
|
PRIMARY KEY (`f1`)
|
|
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
|
connection node_1;
|
|
DROP TABLE t1;
|
|
connection node_2;
|
|
SHOW CREATE TABLE t1;
|
|
ERROR 42S02: Table 'test.t1' doesn't exist
|
|
CREATE DATABASE mdev_18587;
|
|
connection node_2;
|
|
SHOW DATABASES LIKE 'mdev_18587';
|
|
Database (mdev_18587)
|
|
mdev_18587
|
|
connection node_1;
|
|
DROP DATABASE mdev_18587;
|
|
connection node_2;
|
|
SHOW DATABASES LIKE 'mdev_18587';
|
|
Database (mdev_18587)
|
|
connection node_1;
|
|
SET SESSION wsrep_trx_fragment_size=DEFAULT;
|