diff options
author | Rich Prohaska <prohaska@tokutek.com> | 2014-04-21 10:35:03 -0400 |
---|---|---|
committer | Rich Prohaska <prohaska@tokutek.com> | 2014-04-21 10:35:03 -0400 |
commit | 99c4517b296733250325c2b8b3d9e54a6a01a1f5 (patch) | |
tree | c7267e5457200bb613a251d3f13c59449ec678a9 | |
parent | 25f931c6b6fcbdc60dbd16072c09277bd43d8357 (diff) | |
download | mariadb-git-99c4517b296733250325c2b8b3d9e54a6a01a1f5.tar.gz |
#110 turn off replace into and insert ignore optimizations when binlog format != statement
-rw-r--r-- | storage/tokudb/ha_tokudb.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/storage/tokudb/ha_tokudb.cc b/storage/tokudb/ha_tokudb.cc index 0fb5ea4bdca..3d4f3639ec7 100644 --- a/storage/tokudb/ha_tokudb.cc +++ b/storage/tokudb/ha_tokudb.cc @@ -396,11 +396,7 @@ static inline bool do_ignore_flag_optimization(THD* thd, TABLE* table, bool opt_ if (is_replace_into(thd) || is_insert_ignore(thd)) { uint pk_insert_mode = get_pk_insert_mode(thd); if ((!table->triggers && pk_insert_mode < 2) || pk_insert_mode == 0) { - // if bin log row replication is on then ignore the session variable - if (mysql_bin_log.is_open() && - (thd->variables.binlog_format != BINLOG_FORMAT_STMT && thd->variables.binlog_format != BINLOG_FORMAT_MIXED)) { - do_opt = false; - } else { + if (mysql_bin_log.is_open() && thd->variables.binlog_format == BINLOG_FORMAT_STMT) { do_opt = true; } } |