From: Kees Monshouwer Date: Fri, 10 Jan 2014 14:32:30 +0000 (+0100) Subject: set binlog_format='ROW' if (gmysql-)innodb-read-committed is enabled X-Git-Tag: rec-3.6.0-rc1~247^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F1205%2Fhead;p=thirdparty%2Fpdns.git set binlog_format='ROW' if (gmysql-)innodb-read-committed is enabled --- diff --git a/modules/gmysqlbackend/smysql.cc b/modules/gmysqlbackend/smysql.cc index e20aa9fb25..4942f53ac4 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());