From b05a6d8fdadc7117e2931c66ff8a90d6bc476de0 Mon Sep 17 00:00:00 2001 From: "serg@serg.mylan" <> Date: Thu, 6 Oct 2005 19:05:34 +0200 Subject: [PATCH] don't "init" binlog if opt_bin_log is not set (bug#13791 - mysqld crashes at startup in TC_LOG_MMAP::open) --- sql/log.cc | 4 ++-- 1 file 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)