summaryrefslogtreecommitdiff
path: root/sql/log.h
diff options
context:
space:
mode:
author <Dao-Gang.Qu@sun.com>2009-12-03 16:59:58 +0800
committer <Dao-Gang.Qu@sun.com>2009-12-03 16:59:58 +0800
commit34ab4521fb54243c8ab9a8c5e0079de1c269d59b (patch)
tree488130d9bc93c03966ce4e1cda5fb4a553356c9f /sql/log.h
parent46b67a3b297843c4f6dc3de5f0cc79d5f1f9bf1d (diff)
downloadmariadb-git-34ab4521fb54243c8ab9a8c5e0079de1c269d59b.tar.gz
WL#5142 FLUSH LOGS should take optional arguments for which log(s) to flush
Support for flushing individual logs, so that the user can selectively flush a subset of the server logs. Flush of individual logs is done according to the following syntax: FLUSH <log_category> LOGS; The syntax is extended so that the user is able to flush a subset of logs: FLUSH [log_category LOGS,]; where log_category is one of: SLOW ERROR BINARY ENGINE GENERAL RELAY.
Diffstat (limited to 'sql/log.h')
-rw-r--r--sql/log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/log.h b/sql/log.h
index 9be86b797a7..76ca18c8288 100644
--- a/sql/log.h
+++ b/sql/log.h
@@ -570,6 +570,8 @@ public:
void init_base();
void init_log_tables();
bool flush_logs(THD *thd);
+ bool flush_slow_log();
+ bool flush_general_log();
/* 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 */