Commit b05a6d8f authored by serg@serg.mylan's avatar serg@serg.mylan

don't "init" binlog if opt_bin_log is not set

(bug#13791 - mysqld crashes at startup in TC_LOG_MMAP::open)
parent 5da6a6c8
...@@ -66,7 +66,7 @@ handlerton binlog_hton = { ...@@ -66,7 +66,7 @@ handlerton binlog_hton = {
NULL, /* rollback_by_xid */ NULL, /* rollback_by_xid */
NULL, /* create_cursor_read_view */ NULL, /* create_cursor_read_view */
NULL, /* set_cursor_read_view */ NULL, /* set_cursor_read_view */
NULL, /* close_cursor_read_view */ NULL, /* close_cursor_read_view */
HTON_NO_FLAGS HTON_NO_FLAGS
}; };
...@@ -78,7 +78,7 @@ handlerton binlog_hton = { ...@@ -78,7 +78,7 @@ handlerton binlog_hton = {
bool binlog_init() bool binlog_init()
{ {
return false; return !opt_bin_log;
} }
static int binlog_close_connection(THD *thd) static int binlog_close_connection(THD *thd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment