summaryrefslogtreecommitdiff
path: root/sql/mysqld.cc
diff options
context:
space:
mode:
authorAlfranio Correia <alfranio.correia@oracle.com>2010-08-20 03:59:58 +0100
committerAlfranio Correia <alfranio.correia@oracle.com>2010-08-20 03:59:58 +0100
commitac6026ce2774222b4607fcad4e36bbd5c25ff60a (patch)
tree50a64e874f314240cba6e127b70048adb841cb30 /sql/mysqld.cc
parent7f98714247d601c353779d8615a5624cf00b5e6a (diff)
downloadmariadb-git-ac6026ce2774222b4607fcad4e36bbd5c25ff60a.tar.gz
BUG#53452 Inconsistent behavior of binlog_direct_non_transactional_updates with
temp table This patch introduces two key changes in the replication's behavior. Firstly, it reverts part of BUG#51894 which puts any update to temporary tables into the trx-cache. Now, updates to temporary tables are handled according to the type of their engines as a regular table. Secondly, an unsafe mixed statement, (i.e. a statement that access transactional table as well non-transactional or temporary table, and writes to any of them), are written into the trx-cache in order to minimize errors in the execution when the statement logging format is in use. Such changes has a direct impact on which statements are classified as unsafe statements and thus part of BUG#53259 is reverted.
Diffstat (limited to 'sql/mysqld.cc')
-rw-r--r--sql/mysqld.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index eaa3e27cf29..a0eca1b78ff 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -4513,6 +4513,8 @@ int mysqld_main(int argc, char **argv)
init_status_vars();
if (opt_bootstrap) /* If running with bootstrap, do not start replication. */
opt_skip_slave_start= 1;
+
+ binlog_unsafe_map_init();
/*
init_slave() must be called after the thread keys are created.
Some parts of the code (e.g. SHOW STATUS LIKE 'slave_running' and other