| 1 |
--source include/have_wsrep.inc |
| 2 |
--source include/have_innodb.inc |
| 3 |
--source include/have_wsrep_provider.inc |
| 4 |
--source include/have_partition.inc |
| 5 |
# |
| 6 |
# MDEV-33997: Assertion `((WSREP_PROVIDER_EXISTS_ && this->variables.wsrep_on) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()' failed in int THD::binlog_write_row(TABLE*, bool, const uchar*) |
| 7 |
# |
| 8 |
SET SESSION wsrep_osu_method=RSU; |
| 9 |
SET autocommit=0; |
| 10 |
|
| 11 |
CREATE TABLE t (c INT) ENGINE=INNODB PARTITION BY KEY(c) PARTITIONS 2; |
| 12 |
INSERT INTO t VALUES (1); |
| 13 |
INSERT INTO t SELECT 1 ; |
| 14 |
COMMIT; |
| 15 |
SELECT * FROM t; |
| 16 |
DROP TABLE t; |
| 17 |
|
| 18 |
# |
| 19 |
# MDEV-27296 : Assertion `((thd && (WSREP_PROVIDER_EXISTS_ && thd->variables.wsrep_on)) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()' failed |
| 20 |
# Second test case |
| 21 |
# |
| 22 |
SET autocommit=1; |
| 23 |
SET SESSION wsrep_osu_method=RSU; |
| 24 |
CREATE TABLE t (c INT) ENGINE=INNODB PARTITION BY KEY(c) PARTITIONS 2; |
| 25 |
INSERT INTO t SELECT 1 ; |
| 26 |
SELECT * FROM t; |
| 27 |
DROP TABLE t; |
| 28 |
|
| 29 |
# |
| 30 |
# We should not allow RSU for MyISAM |
| 31 |
# |
| 32 |
SET autocommit=1; |
| 33 |
SET SESSION wsrep_osu_method=RSU; |
| 34 |
CREATE TABLE t (c INT) ENGINE=MYISAM PARTITION BY KEY(c) PARTITIONS 2; |
| 35 |
--error ER_NOT_SUPPORTED_YET |
| 36 |
INSERT INTO t SELECT 1 ; |
| 37 |
SELECT * FROM t; |
| 38 |
DROP TABLE t; |
| 39 |
|
| 40 |
SET SESSION wsrep_osu_method=RSU; |
| 41 |
SET autocommit=0; |
| 42 |
|
| 43 |
CREATE TABLE t (c INT) ENGINE=MYISAM PARTITION BY KEY(c) PARTITIONS 2; |
| 44 |
INSERT INTO t VALUES (1); |
| 45 |
--error ER_NOT_SUPPORTED_YET |
| 46 |
INSERT INTO t SELECT 1 ; |
| 47 |
COMMIT; |
| 48 |
SELECT * FROM t; |
| 49 |
DROP TABLE t; |