diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-07-01 12:06:37 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-07-01 12:06:37 +0300 |
commit | 12fae523c30af4eff48d8f89bac65cb2b30c06bd (patch) | |
tree | bb06b9293a9c90750b7b27115ea8b3c0fc795b78 /innobase | |
parent | ea13cafbfe83b1aba0c2dd6582eebd2acc5c6729 (diff) | |
download | mariadb-git-12fae523c30af4eff48d8f89bac65cb2b30c06bd.tar.gz |
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
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/srv/srv0start.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/innobase/srv/srv0start.c b/innobase/srv/srv0start.c index ba0ffbda851..ff4c4f021b0 100644 --- a/innobase/srv/srv0start.c +++ b/innobase/srv/srv0start.c @@ -1362,8 +1362,15 @@ innobase_shutdown_for_mysql(void) "InnoDB: inside InnoDB at shutdown\n", 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); } |