diff options
author | unknown <petr@mysql.com> | 2006-01-27 16:10:40 +0300 |
---|---|---|
committer | unknown <petr@mysql.com> | 2006-01-27 16:10:40 +0300 |
commit | a1565cdc11edbe37cec051cb0318b247da904e22 (patch) | |
tree | 25c7ba62f69d61e458bb966f53e1f6014ecbe6a1 /sql/log.h | |
parent | cbfc0f4c60553722ae93417dc1bc88eb0ac324c6 (diff) | |
download | mariadb-git-a1565cdc11edbe37cec051cb0318b247da904e22.tar.gz |
fix safemalloc warnings
sql/log.cc:
split logging cleanup function in two
and do actual delete of the log event
handlers
sql/log.h:
split logging cleanup function in two
sql/mysqld.cc:
split logger cleanup in two phases
Diffstat (limited to 'sql/log.h')
-rw-r--r-- | sql/log.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sql/log.h b/sql/log.h index d709a73a391..5695f23bbad 100644 --- a/sql/log.h +++ b/sql/log.h @@ -479,7 +479,10 @@ public: { return (THD *) table_log_handler->slow_log_thd; } - void cleanup(); + /* Perform basic logger cleanup. this will leave e.g. error log open. */ + void cleanup_base(); + /* Free memory. Nothing could be logged after this function is called */ + void cleanup_end(); bool error_log_print(enum loglevel level, const char *format, va_list args); bool slow_log_print(THD *thd, const char *query, uint query_length, |