summaryrefslogtreecommitdiff
path: root/sql/log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/log.cc')
-rw-r--r--sql/log.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/log.cc b/sql/log.cc
index 0dc0b4d1682..0ab3e6f94ed 100644
--- a/sql/log.cc
+++ b/sql/log.cc
@@ -67,7 +67,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
};
@@ -79,7 +79,7 @@ handlerton binlog_hton = {
bool binlog_init()
{
- return false;
+ return !opt_bin_log;
}
static int binlog_close_connection(THD *thd)