diff options
author | unknown <hf@deer.(none)> | 2005-07-27 19:39:59 +0500 |
---|---|---|
committer | unknown <hf@deer.(none)> | 2005-07-27 19:39:59 +0500 |
commit | 153353fd29d94e2c466fea54643323c2c25d049b (patch) | |
tree | a1aeba86942da6c39ed6858db389012189a20535 | |
parent | 73ec339dbdb0134d687bedc2123e9b2ed2dc9573 (diff) | |
download | mariadb-git-153353fd29d94e2c466fea54643323c2c25d049b.tar.gz |
addition to the fix for bug #12177(error log file isn't closed)
libmysqld/lib_sql.cc:
we should set errorlog_file=0 to make consequent mysql_server_init work
properly
-rw-r--r-- | libmysqld/lib_sql.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libmysqld/lib_sql.cc b/libmysqld/lib_sql.cc index 4b05dd70e35..b71b442b4ca 100644 --- a/libmysqld/lib_sql.cc +++ b/libmysqld/lib_sql.cc @@ -628,7 +628,10 @@ void STDCALL mysql_server_end() copy_arguments_ptr=0; clean_up(0); if (errorlog_file) + { fclose(errorlog_file); + errorlog_file=0; + } /* If library called my_init(), free memory allocated by it */ if (!org_my_init_done) my_end(0); |