summaryrefslogtreecommitdiff
path: root/VC++Files
diff options
context:
space:
mode:
authorunknown <guilhem@mysql.com>2004-06-21 16:36:28 +0200
committerunknown <guilhem@mysql.com>2004-06-21 16:36:28 +0200
commit7ef30b69841e008958df2a6f855842b413e622f8 (patch)
tree109a0868b1f62253a2bd1de9ab894d1fcc51aedf /VC++Files
parent5777892b6675c30297e96d6b5a00b109be849725 (diff)
downloadmariadb-git-7ef30b69841e008958df2a6f855842b413e622f8.tar.gz
changing order of enum_shutdown_level (easier; we can test if we should die with
"if (thd->killed > thd->killable)", if we simply do thd->killed= level;
Diffstat (limited to 'VC++Files')
-rw-r--r--VC++Files/winmysqladmin/mysql_com.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/VC++Files/winmysqladmin/mysql_com.h b/VC++Files/winmysqladmin/mysql_com.h
index 7d7d77898c3..36d97c5b9a7 100644
--- a/VC++Files/winmysqladmin/mysql_com.h
+++ b/VC++Files/winmysqladmin/mysql_com.h
@@ -157,7 +157,7 @@ enum enum_field_types { FIELD_TYPE_DECIMAL, FIELD_TYPE_TINY,
enum enum_shutdown_level {
/*
- We want levels to be in growing order of gracefulness. So we leave room
+ We want levels to be in growing order of hardness. So we leave room
for future intermediate levels. For now, escalating one level is += 10;
later if we insert new levels in between we will need a function
next_shutdown_level(level). Note that DEFAULT does not respect the
@@ -169,11 +169,12 @@ enum enum_shutdown_level {
something). WAIT_ALL_BUFFERS is what we have now. Others are "this MySQL
server does not support this shutdown level yet".
*/
- SHUTDOWN_WAIT_CRITICAL_BUFFERS= 10, /* flush MyISAM buffs (no corruption) */
- SHUTDOWN_WAIT_ALL_BUFFERS= 20, /* flush InnoDB buffers */
+ SHUTDOWN_WAIT_CONNECTIONS= 10, /* wait for existing connections to finish */
+ SHUTDOWN_WAIT_TRANSACTIONS= 20, /* wait for existing trans to finish */
SHUTDOWN_WAIT_STATEMENTS= 30, /* wait for existing updating stmts to finish */
- SHUTDOWN_WAIT_TRANSACTIONS= 40, /* wait for existing trans to finish */
- SHUTDOWN_WAIT_CONNECTIONS= 50 /* wait for existing connections to finish */
+ SHUTDOWN_WAIT_ALL_BUFFERS= 40, /* flush InnoDB buffers */
+ SHUTDOWN_WAIT_CRITICAL_BUFFERS= 50, /* flush MyISAM buffs (no corruption) */
+ SHUTDOWN_ENUM_END= 255 /* must be last */
};
extern unsigned long max_allowed_packet;