mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
bug #18518 (embedded server crashes starting)
The problem is that now server works properly only with the row-based replication
This commit is contained in:
@@ -1262,12 +1262,14 @@ bool sys_var_thd_binlog_format::is_readonly() const
|
||||
And this test will also prevent switching from RBR to RBR (a no-op which
|
||||
should not happen too often).
|
||||
*/
|
||||
#ifdef HAVE_ROW_BASED_REPLICATION
|
||||
if ((thd->variables.binlog_format == BINLOG_FORMAT_ROW) &&
|
||||
thd->temporary_tables)
|
||||
{
|
||||
my_error(ER_TEMP_TABLE_PREVENTS_SWITCH_OUT_OF_RBR, MYF(0));
|
||||
return 1;
|
||||
}
|
||||
#endif /*HAVE_ROW_BASED_REPLICATION*/
|
||||
/*
|
||||
if in a stored function, it's too late to change mode
|
||||
*/
|
||||
@@ -1291,7 +1293,9 @@ bool sys_var_thd_binlog_format::is_readonly() const
|
||||
|
||||
void fix_binlog_format_after_update(THD *thd, enum_var_type type)
|
||||
{
|
||||
#ifdef HAVE_ROW_BASED_REPLICATION
|
||||
thd->reset_current_stmt_binlog_row_based();
|
||||
#endif /*HAVE_ROW_BASED_REPLICATION*/
|
||||
}
|
||||
|
||||
static void fix_max_binlog_size(THD *thd, enum_var_type type)
|
||||
|
||||
Reference in New Issue
Block a user