summaryrefslogtreecommitdiff
path: root/sql/sql_binlog.cc
diff options
context:
space:
mode:
authorunknown <Li-Bing.Song@sun.com>2010-11-28 18:06:02 +0800
committerunknown <Li-Bing.Song@sun.com>2010-11-28 18:06:02 +0800
commitd08be72f751ba588392030f4f705f49278c2e7de (patch)
tree820c90d11f8c495466d7e2409f77a28695b952d7 /sql/sql_binlog.cc
parentf5a74396473c96cb628a939ba49c1132bde4313c (diff)
parentf225470b3904a93fdec6966c9c093f545bf260b2 (diff)
downloadmariadb-git-d08be72f751ba588392030f4f705f49278c2e7de.tar.gz
Manual merge
Diffstat (limited to 'sql/sql_binlog.cc')
-rw-r--r--sql/sql_binlog.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/sql/sql_binlog.cc b/sql/sql_binlog.cc
index 6f59c3f51e1..503d830a10e 100644
--- a/sql/sql_binlog.cc
+++ b/sql/sql_binlog.cc
@@ -61,6 +61,13 @@ void mysql_client_binlog_statement(THD* thd)
size_t decoded_len= base64_needed_decoded_length(coded_len);
/*
+ option_bits will be changed when applying the event. But we don't expect
+ it be changed permanently after BINLOG statement, so backup it first.
+ It will be restored at the end of this function.
+ */
+ ulonglong thd_options= thd->variables.option_bits;
+
+ /*
Allocation
*/
@@ -246,6 +253,7 @@ void mysql_client_binlog_statement(THD* thd)
my_ok(thd);
end:
+ thd->variables.option_bits= thd_options;
rli->slave_close_thread_tables(thd);
my_free(buf);
DBUG_VOID_RETURN;