mirror of
https://github.com/MariaDB/server.git
synced 2026-05-16 11:57:38 +02:00
Merge 10.2 into 10.3
This commit is contained in:
commit
192aa295b4
41 changed files with 668 additions and 399 deletions
|
|
@ -18,7 +18,16 @@ set @tmp_bf= @@binlog_format;
|
|||
set binlog_format='STATEMENT';
|
||||
lock tables t1 write;
|
||||
insert into t1 values(1);
|
||||
ERROR HY000: Can't execute updates on master with binlog_format != ROW.
|
||||
ERROR HY000: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging.
|
||||
unlock tables;
|
||||
set @@binlog_format=@tmp_bf;
|
||||
drop table t1;
|
||||
#
|
||||
# MDEV-17045: MyRocks tables cannot be updated when binlog_format=MIXED.
|
||||
#
|
||||
set @tmp_bf= @@binlog_format;
|
||||
set binlog_format='MIXED';
|
||||
create table t1 (pk int primary key) engine=rocksdb;
|
||||
insert into t1 values (1);
|
||||
drop table t1;
|
||||
set @@binlog_format=@tmp_bf;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ select @@binlog_format;
|
|||
STATEMENT
|
||||
create table t1 (pk int primary key) engine=rocksdb;
|
||||
insert into t1 values (1),(2),(3);
|
||||
ERROR HY000: Can't execute updates on master with binlog_format != ROW.
|
||||
ERROR HY000: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging.
|
||||
set session rocksdb_unsafe_for_binlog=on;
|
||||
insert into t1 values (1),(2),(3);
|
||||
select * from t1;
|
||||
|
|
@ -19,7 +19,7 @@ pk
|
|||
delete from t1;
|
||||
set session rocksdb_unsafe_for_binlog=off;
|
||||
insert into t1 values (1),(2),(3);
|
||||
ERROR HY000: Can't execute updates on master with binlog_format != ROW.
|
||||
ERROR HY000: Cannot execute statement: impossible to write to binary log since BINLOG_FORMAT = STATEMENT and at least one table uses a storage engine limited to row-based logging.
|
||||
set binlog_format=row;
|
||||
insert into t1 values (1),(2),(3);
|
||||
include/sync_slave_sql_with_master.inc
|
||||
|
|
|
|||
|
|
@ -21,10 +21,20 @@ unlock tables;
|
|||
set @tmp_bf= @@binlog_format;
|
||||
set binlog_format='STATEMENT';
|
||||
lock tables t1 write;
|
||||
--error ER_REQUIRE_ROW_BINLOG_FORMAT
|
||||
--error ER_BINLOG_STMT_MODE_AND_ROW_ENGINE
|
||||
insert into t1 values(1);
|
||||
unlock tables;
|
||||
set @@binlog_format=@tmp_bf;
|
||||
|
||||
drop table t1;
|
||||
|
||||
--echo #
|
||||
--echo # MDEV-17045: MyRocks tables cannot be updated when binlog_format=MIXED.
|
||||
--echo #
|
||||
set @tmp_bf= @@binlog_format;
|
||||
set binlog_format='MIXED';
|
||||
create table t1 (pk int primary key) engine=rocksdb;
|
||||
insert into t1 values (1);
|
||||
drop table t1;
|
||||
set @@binlog_format=@tmp_bf;
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ connection master;
|
|||
|
||||
select @@binlog_format;
|
||||
create table t1 (pk int primary key) engine=rocksdb;
|
||||
--error ER_REQUIRE_ROW_BINLOG_FORMAT
|
||||
--error ER_BINLOG_STMT_MODE_AND_ROW_ENGINE
|
||||
insert into t1 values (1),(2),(3);
|
||||
|
||||
set session rocksdb_unsafe_for_binlog=on;
|
||||
|
|
@ -21,7 +21,7 @@ select * from t1;
|
|||
delete from t1;
|
||||
set session rocksdb_unsafe_for_binlog=off;
|
||||
|
||||
--error ER_REQUIRE_ROW_BINLOG_FORMAT
|
||||
--error ER_BINLOG_STMT_MODE_AND_ROW_ENGINE
|
||||
insert into t1 values (1),(2),(3);
|
||||
|
||||
set binlog_format=row;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue