From 25f56ce8b44fe5364c0e953d5699c59e574dba9b Mon Sep 17 00:00:00 2001 From: "holyfoot@deer.(none)" <> Date: Mon, 24 Apr 2006 19:39:33 +0500 Subject: bug #18518 (embedded server crashes starting) The problem is that now server works properly only with the row-based replication --- sql/set_var.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sql/set_var.cc') diff --git a/sql/set_var.cc b/sql/set_var.cc index 213b52cc20c..d88257de856 100644 --- a/sql/set_var.cc +++ b/sql/set_var.cc @@ -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) -- cgit v1.2.1