mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
BUG#42829: manually merged approved bzr bundle from bug report.
Conflicts ========= Text conflict in sql/sql_class.cc 1 conflicts encountered.
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
#include <m_ctype.h>
|
||||
#include <my_dir.h>
|
||||
#include <hash.h>
|
||||
#include "rpl_filter.h"
|
||||
#ifdef __WIN__
|
||||
#include <io.h>
|
||||
#endif
|
||||
@ -5098,7 +5099,16 @@ static void mark_real_tables_as_free_for_reuse(TABLE_LIST *table)
|
||||
|
||||
int decide_logging_format(THD *thd, TABLE_LIST *tables)
|
||||
{
|
||||
if (mysql_bin_log.is_open() && (thd->options & OPTION_BIN_LOG))
|
||||
/*
|
||||
In SBR mode, we are only proceeding if we are binlogging this
|
||||
statement, ie, the filtering rules won't later filter this out.
|
||||
|
||||
This check here is needed to prevent some spurious error to be
|
||||
raised in some cases (See BUG#42829).
|
||||
*/
|
||||
if (mysql_bin_log.is_open() && (thd->options & OPTION_BIN_LOG) &&
|
||||
(thd->variables.binlog_format != BINLOG_FORMAT_STMT ||
|
||||
binlog_filter->db_ok(thd->db)))
|
||||
{
|
||||
/*
|
||||
Compute the starting vectors for the computations by creating a
|
||||
|
Reference in New Issue
Block a user