1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-09 22:24:09 +03:00

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.
This commit is contained in:
Nirbhay Choubey
2015-05-24 13:30:49 -04:00
parent 0bfae356d4
commit 9eff9ed5c5

View File

@@ -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
// to know mysqld_port now - lp:1071882
#endif /* !EMBEDDED_LIBRARY */
/*
Plugin initialization (plugin_init()) hasn't happened yet, set
maria_hton to 0.
*/
maria_hton= 0;
wsrep_init_startup(true);
}
}