Commit 9eff9ed5 authored by Nirbhay Choubey's avatar Nirbhay Choubey

MDEV-8208 : Sporadic SEGFAULT on startup

During server start, as wsrep initialization happens before
plugin_init(), segfault may occur if wsrep THDs try to access
the uninitialized maria_hton.
parent 0bfae356
...@@ -4497,6 +4497,12 @@ will be ignored as the --log-bin option is not defined."); ...@@ -4497,6 +4497,12 @@ will be ignored as the --log-bin option is not defined.");
set_ports(); // this is also called in network_init() later but we need set_ports(); // this is also called in network_init() later but we need
// to know mysqld_port now - lp:1071882 // to know mysqld_port now - lp:1071882
#endif /* !EMBEDDED_LIBRARY */ #endif /* !EMBEDDED_LIBRARY */
/*
Plugin initialization (plugin_init()) hasn't happened yet, set
maria_hton to 0.
*/
maria_hton= 0;
wsrep_init_startup(true); wsrep_init_startup(true);
} }
} }
......
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