From 91d924ccbbb42ffafe73c5213abf082ac2187b82 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Fri, 25 Jul 2014 21:32:19 +0400 Subject: [PATCH] Fix Issue #1: Enable Row-based binlogging and disable statement-based. --- rpl_row_rocksdb.cnf | 7 +++++++ rpl_row_rocksdb.result | 19 +++++++++++++++++++ rpl_row_rocksdb.test | 23 +++++++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 rpl_row_rocksdb.cnf create mode 100644 rpl_row_rocksdb.result create mode 100644 rpl_row_rocksdb.test diff --git a/rpl_row_rocksdb.cnf b/rpl_row_rocksdb.cnf new file mode 100644 index 000000000000..b46b417c257b --- /dev/null +++ b/rpl_row_rocksdb.cnf @@ -0,0 +1,7 @@ +!include suite/rpl/my.cnf + +[mysqld.1] +binlog_format=row +[mysqld.2] +binlog_format=row + diff --git a/rpl_row_rocksdb.result b/rpl_row_rocksdb.result new file mode 100644 index 000000000000..6f304147432c --- /dev/null +++ b/rpl_row_rocksdb.result @@ -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 diff --git a/rpl_row_rocksdb.test b/rpl_row_rocksdb.test new file mode 100644 index 000000000000..2ec9a08ed8f3 --- /dev/null +++ b/rpl_row_rocksdb.test @@ -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 +