Skip to content

Commit

Permalink
MW-394
Browse files Browse the repository at this point in the history
Merged fix for LOAD DATA splitting with log_bin==OFF, from mysql-wsrep-bugs/MW-394
  • Loading branch information
sjaakola authored and Jan Lindström committed Oct 19, 2017
1 parent 86d31ce commit 0332acc
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions sql/sql_class.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4297,14 +4297,16 @@ extern "C" int thd_non_transactional_update(const MYSQL_THD thd)
extern "C" int thd_binlog_format(const MYSQL_THD thd)
{
#ifdef WITH_WSREP
if (((WSREP(thd) && wsrep_emulate_bin_log) || mysql_bin_log.is_open()) &&
(thd->variables.option_bits & OPTION_BIN_LOG))
#else
if (WSREP(thd))
{
/* for wsrep binlog format is meaningful also when binlogging is off */
return (int) WSREP_BINLOG_FORMAT(thd->variables.binlog_format);
}
#endif /* WITH_WSREP */
if (mysql_bin_log.is_open() && (thd->variables.option_bits & OPTION_BIN_LOG))
#endif
return (int) WSREP_BINLOG_FORMAT(thd->variables.binlog_format);
return (int) thd->variables.binlog_format;
else
return BINLOG_FORMAT_UNSPEC;
return BINLOG_FORMAT_UNSPEC;
}

extern "C" void thd_mark_transaction_to_rollback(MYSQL_THD thd, bool all)
Expand Down

0 comments on commit 0332acc

Please sign in to comment.