summaryrefslogtreecommitdiff
path: root/include/mysql_com.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 /include/mysql_com.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 'include/mysql_com.h')
-rw-r--r--include/mysql_com.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h
index db5a5eb8741..43bdcb4c3c7 100644
--- a/include/mysql_com.h
+++ b/include/mysql_com.h
@@ -115,6 +115,12 @@ enum enum_server_command
thread */
#define REFRESH_MASTER 128 /* Remove all bin logs in the index
and truncate the index */
+#define REFRESH_ERROR_LOG 256 /* Rotate only the erorr log */
+#define REFRESH_ENGINE_LOG 512 /* Flush all storage engine logs */
+#define REFRESH_BINARY_LOG 1024 /* Flush the binary log */
+#define REFRESH_RELAY_LOG 2048 /* Flush the relay log */
+#define REFRESH_GENERAL_LOG 4096 /* Flush the general log */
+#define REFRESH_SLOW_LOG 8192 /* Flush the slow query log */
/* The following can't be set with mysql_refresh() */
#define REFRESH_READ_LOCK 16384 /* Lock tables for read */