diff options
author | unknown <monty@hundin.mysql.fi> | 2002-05-15 16:36:41 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-05-15 16:36:41 +0300 |
commit | 51594771687dfdee9d5d544863ccf77e8c8b74bd (patch) | |
tree | e81d9f0eeb50d39478bdd0ac4893fcde5fa0de1d /libmysql | |
parent | a15dfeda90d9d8d073a36ea6ac9cdfa66804877b (diff) | |
download | mariadb-git-51594771687dfdee9d5d544863ccf77e8c8b74bd.tar.gz |
Removed some long from mysqld comments (should be in manual).
Docs/manual.texi:
Updated information about --temp-pool
libmysql/libmysql.c:
Call my_end() at exit
libmysqld/lib_sql.cc:
Call my_end() at exit
sql/mysqld.cc:
Removed some long comments (should be in manual).
Diffstat (limited to 'libmysql')
-rw-r--r-- | libmysql/libmysql.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libmysql/libmysql.c b/libmysql/libmysql.c index feee3451f51..04f62df32a9 100644 --- a/libmysql/libmysql.c +++ b/libmysql/libmysql.c @@ -90,6 +90,8 @@ static sig_handler pipe_sig_handler(int sig); static ulong mysql_sub_escape_string(CHARSET_INFO *charset_info, char *to, const char *from, ulong length); +static my_bool org_my_init_done=0; + int STDCALL mysql_server_init(int argc __attribute__((unused)), char **argv __attribute__((unused)), char **groups __attribute__((unused))) @@ -98,7 +100,11 @@ int STDCALL mysql_server_init(int argc __attribute__((unused)), } void STDCALL mysql_server_end() -{} +{ + /* If library called my_init(), free memory allocated by it */ + if (!org_my_init_done) + my_end(0); +} my_bool STDCALL mysql_thread_init() { @@ -1352,6 +1358,7 @@ static void mysql_once_init() if (!mysql_client_init) { mysql_client_init=1; + org_my_init_done=my_init_done; my_init(); /* Will init threads */ init_client_errs(); if (!mysql_port) |