diff options
author | unknown <Li-Bing.Song@sun.com> | 2010-11-28 18:06:02 +0800 |
---|---|---|
committer | unknown <Li-Bing.Song@sun.com> | 2010-11-28 18:06:02 +0800 |
commit | d08be72f751ba588392030f4f705f49278c2e7de (patch) | |
tree | 820c90d11f8c495466d7e2409f77a28695b952d7 /sql/sql_binlog.cc | |
parent | f5a74396473c96cb628a939ba49c1132bde4313c (diff) | |
parent | f225470b3904a93fdec6966c9c093f545bf260b2 (diff) | |
download | mariadb-git-d08be72f751ba588392030f4f705f49278c2e7de.tar.gz |
Manual merge
Diffstat (limited to 'sql/sql_binlog.cc')
-rw-r--r-- | sql/sql_binlog.cc | 8 |
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; |