Commit d62b7585 authored by Monty's avatar Monty

Moved mysqld_server_initialized to before galera is initialized.

parent ea83c1d7
......@@ -5103,6 +5103,9 @@ static int init_server_components()
variables even when a wsrep provider is not loaded.
*/
/* It's now safe to use thread specific memory */
mysqld_server_initialized= 1;
wsrep_thr_init();
if (WSREP_ON && !wsrep_recovery && !opt_abort) /* WSREP BEFORE SE */
......@@ -5193,9 +5196,6 @@ static int init_server_components()
init_global_table_stats();
init_global_index_stats();
/* It's now safe to use thread specific memory */
mysqld_server_initialized= 1;
/* Allow storage engine to give real error messages */
if (ha_init_errors())
DBUG_RETURN(1);
......
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