summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sql/log.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/log.cc b/sql/log.cc
index f352a38c393..8e9555cc9b2 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -66,7 +66,7 @@ handlerton binlog_hton = {
NULL, /* rollback_by_xid */
NULL, /* create_cursor_read_view */
NULL, /* set_cursor_read_view */
- NULL, /* close_cursor_read_view */
+ NULL, /* close_cursor_read_view */
HTON_NO_FLAGS
};
@@ -78,7 +78,7 @@ handlerton binlog_hton = {
bool binlog_init()
{
- return false;
+ return !opt_bin_log;
}
static int binlog_close_connection(THD *thd)