summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 21546ddaebf..5606bd0c4ac 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -1284,10 +1284,7 @@ void THD::init()
wsrep_desynced_backup_stage= false;
#endif /* WITH_WSREP */
- if (variables.sql_log_bin)
- variables.option_bits|= OPTION_BIN_LOG;
- else
- variables.option_bits&= ~OPTION_BIN_LOG;
+ set_binlog_bit();
variables.sql_log_bin_off= 0;