mariadb/mysql-test/suite/rpl_ndb/my.cnf
Sven Sandberg 29c8c152b2 BUG#50410: rpl_ndb tests should run with binlog_format=row
Problem: The rpl_ndb did not set binlog_format explicitly. Since
the default is binlog_format=statement, it means that the suite
ran with that. ndb does not support binlog_format=statement,
and many tests were skipped because they sourced
include/have_binlog_format_row_or_mixed.inc
Fix: set binlog_format=row explicitly in the configuration file
for the rpl_ndb suite.


Makefile.am:
  Removed duplicate run of rpl_ndb suite with binlog_format=row.
  Now that rpl_ndb is run with binlog_format=row by default, this
  run that explicitly changes to binlog_format=row is not needed,
  because it is covered by the following run.
mysql-test/suite/rpl_ndb/my.cnf:
  cluster only supports binlog_format=row.
mysql-test/suite/rpl_ndb/r/rpl_ndb_stm_innodb.result:
  updated result file
mysql-test/suite/rpl_ndb/t/rpl_ndb_stm_innodb.test:
  This test is supposed to use binlog_format=STATEMENT on
  master. It uses innodb on master, so statement format is
  supported.
2010-05-12 12:29:02 +02:00

79 lines
2.2 KiB
INI

!include include/default_mysqld.cnf
!include include/default_ndbd.cnf
[cluster_config.1]
NoOfReplicas= 2
ndbd=,
ndb_mgmd=
mysqld=,
[cluster_config.slave]
NoOfReplicas= 1
ndbd=
ndb_mgmd=
mysqld=
[mysqld]
# Make all mysqlds use cluster
ndbcluster
# Turn on bin logging
log-bin= master-bin
# Cluster only supports row format
binlog-format= row
[mysqld.1.1]
[mysqld.1.1]
[mysqld.1.slave]
# Append <testname>-slave.opt file to the list of argument used when
# starting the mysqld
#!use-slave-opt
# Connect mysqld in the second cluster as save to first mysqld
# Hardcode the host to 127.0.0.1 until running on more
# than one host and it probably need to be masked anyway
# master-host= @mysqld.1.#host
master-host= 127.0.0.1
master-port= @mysqld.1.1.port
master-password= @mysqld.1.1.#password
master-user= @mysqld.1.1.#user
master-connect-retry= 1
log-bin= slave-bin
relay-log= slave-relay-bin
# Cluster only supports row format
binlog-format= row
init-rpl-role= slave
log-slave-updates
master-retry-count= 10
# Values reported by slave when it connect to master
# and shows up in SHOW SLAVE STATUS;
report-host= 127.0.0.1
report-port= @mysqld.1.slave.port
report-user= root
loose-skip-innodb
skip-slave-start
# Directory where slaves find the dumps generated by "load data"
# on the server. The path need to have constant length otherwise
# test results will vary, thus a relative path is used.
slave-load-tmpdir= ../../../tmp
rpl-recovery-rank= @mysqld.1.slave.server-id
[ENV]
NDB_CONNECTSTRING= @mysql_cluster.1.ndb_connectstring
MASTER_MYPORT= @mysqld.1.1.port
MASTER_MYPORT1= @mysqld.2.1.port
NDB_CONNECTSTRING_SLAVE= @mysql_cluster.slave.ndb_connectstring
SLAVE_MYPORT= @mysqld.1.slave.port
SLAVE_MYSOCK= @mysqld.1.slave.socket
NDB_BACKUP_DIR= @cluster_config.ndbd.1.1.BackupDataDir