From 34ab4521fb54243c8ab9a8c5e0079de1c269d59b Mon Sep 17 00:00:00 2001 From: Date: Thu, 3 Dec 2009 16:59:58 +0800 Subject: 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 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. --- sql/log.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sql/log.h') 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 */ -- cgit v1.2.1