Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f1e8bc85
Commit
f1e8bc85
authored
Aug 19, 2004
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql_com.h:
Better names for defines, as these are visible in API
parent
b9dbef8e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
18 deletions
+18
-18
VC++Files/winmysqladmin/mysql_com.h
VC++Files/winmysqladmin/mysql_com.h
+9
-9
include/mysql_com.h
include/mysql_com.h
+9
-9
No files found.
VC++Files/winmysqladmin/mysql_com.h
View file @
f1e8bc85
...
@@ -159,10 +159,10 @@ enum enum_field_types { FIELD_TYPE_DECIMAL, FIELD_TYPE_TINY,
...
@@ -159,10 +159,10 @@ enum enum_field_types { FIELD_TYPE_DECIMAL, FIELD_TYPE_TINY,
/* Shutdown/kill enums and constants */
/* Shutdown/kill enums and constants */
/* Bits for THD::killable. */
/* Bits for THD::killable. */
#define KILLABLE_CONNECT (unsigned char)(1 << 0)
#define
MYSQL_SHUTDOWN_
KILLABLE_CONNECT (unsigned char)(1 << 0)
#define KILLABLE_TRANS (unsigned char)(1 << 1)
#define
MYSQL_SHUTDOWN_
KILLABLE_TRANS (unsigned char)(1 << 1)
#define KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
#define
MYSQL_SHUTDOWN_
KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
#define KILLABLE_UPDATE (unsigned char)(1 << 3)
#define
MYSQL_SHUTDOWN_
KILLABLE_UPDATE (unsigned char)(1 << 3)
enum
enum_shutdown_level
{
enum
enum_shutdown_level
{
/*
/*
...
@@ -172,15 +172,15 @@ enum enum_shutdown_level {
...
@@ -172,15 +172,15 @@ enum enum_shutdown_level {
*/
*/
SHUTDOWN_DEFAULT
=
0
,
SHUTDOWN_DEFAULT
=
0
,
/* wait for existing connections to finish */
/* wait for existing connections to finish */
SHUTDOWN_WAIT_CONNECTIONS
=
KILLABLE_CONNECT
,
SHUTDOWN_WAIT_CONNECTIONS
=
MYSQL_SHUTDOWN_
KILLABLE_CONNECT
,
/* wait for existing trans to finish */
/* 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) */
/* 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*/
/* 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*/
/* 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 */
/* Now the 2 levels of the KILL command */
#if MYSQL_VERSION_ID >= 50000
#if MYSQL_VERSION_ID >= 50000
KILL_QUERY
=
254
,
KILL_QUERY
=
254
,
...
...
include/mysql_com.h
View file @
f1e8bc85
...
@@ -227,10 +227,10 @@ enum enum_field_types { MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
...
@@ -227,10 +227,10 @@ enum enum_field_types { MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
/* Shutdown/kill enums and constants */
/* Shutdown/kill enums and constants */
/* Bits for THD::killable. */
/* Bits for THD::killable. */
#define KILLABLE_CONNECT (unsigned char)(1 << 0)
#define
MYSQL_SHUTDOWN_
KILLABLE_CONNECT (unsigned char)(1 << 0)
#define KILLABLE_TRANS (unsigned char)(1 << 1)
#define
MYSQL_SHUTDOWN_
KILLABLE_TRANS (unsigned char)(1 << 1)
#define KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
#define
MYSQL_SHUTDOWN_
KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
#define KILLABLE_UPDATE (unsigned char)(1 << 3)
#define
MYSQL_SHUTDOWN_
KILLABLE_UPDATE (unsigned char)(1 << 3)
enum
enum_shutdown_level
{
enum
enum_shutdown_level
{
/*
/*
...
@@ -240,15 +240,15 @@ enum enum_shutdown_level {
...
@@ -240,15 +240,15 @@ enum enum_shutdown_level {
*/
*/
SHUTDOWN_DEFAULT
=
0
,
SHUTDOWN_DEFAULT
=
0
,
/* wait for existing connections to finish */
/* wait for existing connections to finish */
SHUTDOWN_WAIT_CONNECTIONS
=
KILLABLE_CONNECT
,
SHUTDOWN_WAIT_CONNECTIONS
=
MYSQL_SHUTDOWN_
KILLABLE_CONNECT
,
/* wait for existing trans to finish */
/* 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) */
/* 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*/
/* 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*/
/* 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 */
/* Now the 2 levels of the KILL command */
#if MYSQL_VERSION_ID >= 50000
#if MYSQL_VERSION_ID >= 50000
KILL_QUERY
=
254
,
KILL_QUERY
=
254
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment