Commit e9f6b353 authored by unknown's avatar unknown

Bug#23950: misplaced code in mysqld.cc, main()

We should initialize before anything else.


sql/mysqld.cc:
  Move MY_INIT to the top of main().
parent f7f69043
......@@ -3339,8 +3339,10 @@ int win_main(int argc, char **argv)
int main(int argc, char **argv)
#endif
{
DEBUGGER_OFF;
MY_INIT(argv[0]); // init my_sys library & pthreads
/* ^^^ Nothing should be before this line! */
DEBUGGER_OFF;
#ifdef _CUSTOMSTARTUPCONFIG_
if (_cust_check_startup())
......
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