summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2004-08-19 15:10:59 +0200
committerunknown <guilhem@mysql.com>2004-08-19 15:10:59 +0200
commit32ad58799df82b1ae12c291bea85e77deb40ac20 (patch)
treef21691b51331b0a0b491563b4f8e382237ab359e /include
parentb368cb3f6e57f7cba609088ca3ff2376bbe1b56a (diff)
downloadmariadb-git-32ad58799df82b1ae12c291bea85e77deb40ac20.tar.gz
mysql_com.h:
Better names for defines, as these are visible in API include/mysql_com.h: Better names for defines, as these are visible in API VC++Files/winmysqladmin/mysql_com.h: Better names for defines, as these are visible in API
Diffstat (limited to 'include')
-rw-r--r--include/mysql_com.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/include/mysql_com.h b/include/mysql_com.h
index fa25db5f11a..f006c38aad2 100644
--- a/include/mysql_com.h
+++ b/include/mysql_com.h
@@ -227,10 +227,10 @@ enum enum_field_types { MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
/* Shutdown/kill enums and constants */
/* Bits for THD::killable. */
-#define KILLABLE_CONNECT (unsigned char)(1 << 0)
-#define KILLABLE_TRANS (unsigned char)(1 << 1)
-#define KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
-#define KILLABLE_UPDATE (unsigned char)(1 << 3)
+#define MYSQL_SHUTDOWN_KILLABLE_CONNECT (unsigned char)(1 << 0)
+#define MYSQL_SHUTDOWN_KILLABLE_TRANS (unsigned char)(1 << 1)
+#define MYSQL_SHUTDOWN_KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
+#define MYSQL_SHUTDOWN_KILLABLE_UPDATE (unsigned char)(1 << 3)
enum enum_shutdown_level {
/*
@@ -240,15 +240,15 @@ enum enum_shutdown_level {
*/
SHUTDOWN_DEFAULT= 0,
/* wait for existing connections to finish */
- SHUTDOWN_WAIT_CONNECTIONS= KILLABLE_CONNECT,
+ SHUTDOWN_WAIT_CONNECTIONS= MYSQL_SHUTDOWN_KILLABLE_CONNECT,
/* wait for existing trans to finish */
- SHUTDOWN_WAIT_TRANSACTIONS= KILLABLE_TRANS,
+ SHUTDOWN_WAIT_TRANSACTIONS= MYSQL_SHUTDOWN_KILLABLE_TRANS,
/* wait for existing updates to finish (=> no partial MyISAM update) */
- SHUTDOWN_WAIT_UPDATES= KILLABLE_UPDATE,
+ SHUTDOWN_WAIT_UPDATES= MYSQL_SHUTDOWN_KILLABLE_UPDATE,
/* flush InnoDB buffers and other storage engines' buffers*/
- SHUTDOWN_WAIT_ALL_BUFFERS= (KILLABLE_UPDATE << 1),
+ SHUTDOWN_WAIT_ALL_BUFFERS= (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1),
/* don't flush InnoDB buffers, flush other storage engines' buffers*/
- SHUTDOWN_WAIT_CRITICAL_BUFFERS= (KILLABLE_UPDATE << 1) + 1,
+ SHUTDOWN_WAIT_CRITICAL_BUFFERS= (MYSQL_SHUTDOWN_KILLABLE_UPDATE << 1) + 1,
/* Now the 2 levels of the KILL command */
#if MYSQL_VERSION_ID >= 50000
KILL_QUERY= 254,