From 817975345de3127aeb4e25bc52b2dc38577d29b3 Mon Sep 17 00:00:00 2001 From: Kees Monshouwer Date: Fri, 10 Jan 2014 15:32:30 +0100 Subject: [PATCH] set binlog_format='ROW' if (gmysql-)innodb-read-committed is enabled --- modules/gmysqlbackend/smysql.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index e20aa9fb2..4942f53ac 100644 --- a/modules/gmysqlbackend/smysql.cc +++ b/modules/gmysqlbackend/smysql.cc @@ -37,8 +37,10 @@ SMySQL::SMySQL(const string &database, const string &host, uint16_t port, const mysql_options(&d_db, MYSQL_SET_CHARSET_NAME, MYSQL_AUTODETECT_CHARSET_NAME); #endif - if (setIsolation && (retry == 1)) + if (setIsolation && (retry == 1)) { mysql_options(&d_db, MYSQL_INIT_COMMAND,"SET SESSION tx_isolation='READ-COMMITTED'"); + mysql_options(&d_db, MYSQL_INIT_COMMAND,"SET SESSION binlog_format='ROW'"); + } mysql_options(&d_db, MYSQL_READ_DEFAULT_GROUP, group.c_str()); -- 2.40.0