mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
srv0start.c:
Remove freeing of all memory at shutdown: since we do not exit the i/o-handlers and other threads, we could potentially get a seg fault at shutdown innobase/srv/srv0start.c: Remove freeing of all memory at shutdown: since we do not exit the i/o-handlers and other threads, we could potentially get a seg fault at shutdown
This commit is contained in:
@ -1362,8 +1362,15 @@ innobase_shutdown_for_mysql(void)
|
|||||||
"InnoDB: inside InnoDB at shutdown\n",
|
"InnoDB: inside InnoDB at shutdown\n",
|
||||||
srv_conc_n_threads);
|
srv_conc_n_threads);
|
||||||
}
|
}
|
||||||
|
|
||||||
ut_free_all_mem();
|
/*
|
||||||
|
TODO: We should exit the i/o-handler and other utility threads
|
||||||
|
before freeing all memory. Now this can potentially cause a seg
|
||||||
|
fault!
|
||||||
|
*/
|
||||||
|
#ifdef NOT_WORKING_YET
|
||||||
|
ut_free_all_mem();
|
||||||
|
#endif
|
||||||
|
|
||||||
return((int) DB_SUCCESS);
|
return((int) DB_SUCCESS);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user