Commit 73c702ea authored by Sergei Petrunia's avatar Sergei Petrunia

MariaRocks port: fix rocksdb.rpl_row_rocksdb test

The 'combinations' system in MTR ignores settings from $testname.cnf,
and tries to run RBR test with binlog_format=mixed.

Fixed by using "source include/have_binlog_format_row.inc" which tells
MTR to only run the test with binlog_format=ROW.
The test still needs its $testname.cnf to include suite/rpl/my.cnf. This
is necessary to setup replication

(Using "source include/master-slave.inc" will have MTR set up replication
for the test, but only as long as the testsuite doesn't have its own
suite/rocksdb/my.cnf.  We do have that file (and it doesn't set up
replication), so we need to have $testname.cnf to setup replication).
parent 8e2cfde9
include/master-slave.inc
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection master]
connection master;
drop table if exists t1;
connection master;
select @@binlog_format;
@@binlog_format
ROW
create table t1 (pk int primary key) engine=rocksdb;
insert into t1 values (1),(2),(3);
include/sync_slave_sql_with_master.inc
connection slave;
select * from t1;
pk
1
2
3
connection master;
drop table t1;
#
# Issue #18: slave crash on update with row based binary logging
......@@ -29,6 +30,7 @@ update t1 set value2=100 where id=1;
update t1 set value2=200 where id=2;
update t1 set value2=300 where id=3;
include/sync_slave_sql_with_master.inc
connection slave;
select * from t1 where id=1;
id value value2
1 1 100
......@@ -38,5 +40,6 @@ id value value2
select * from t1 where id=3;
id value value2
3 1 300
connection master;
drop table t1;
include/rpl_end.inc
!include suite/rpl/my.cnf
[mysqld.1]
binlog_format=row
[mysqld.2]
binlog_format=row
--source include/have_rocksdb.inc
source include/master-slave.inc;
source include/have_binlog_format_row.inc;
connection master;
--disable_warnings
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment