Skip to content

Commit

Permalink
Fix Issue percona#1: Enable Row-based binlogging and disable statemen…
Browse files Browse the repository at this point in the history
…t-based.
  • Loading branch information
spetrunia authored and jtolmer committed Jan 5, 2016
1 parent 783204e commit 91d924c
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rpl_row_rocksdb.cnf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
!include suite/rpl/my.cnf

[mysqld.1]
binlog_format=row
[mysqld.2]
binlog_format=row

19 changes: 19 additions & 0 deletions rpl_row_rocksdb.result
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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]
drop table if exists t1;
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
select * from t1;
pk
1
2
3
drop table t1;
include/rpl_end.inc
23 changes: 23 additions & 0 deletions rpl_row_rocksdb.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
source include/master-slave.inc;

connection master;
--disable_warnings
drop table if exists t1;
--enable_warnings

connection master;

select @@binlog_format;
create table t1 (pk int primary key) engine=rocksdb;
insert into t1 values (1),(2),(3);

--source include/sync_slave_sql_with_master.inc
connection slave;

select * from t1;

connection master;
drop table t1;

--source include/rpl_end.inc

0 comments on commit 91d924c

Please sign in to comment.