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
22a65bcf
Commit
22a65bcf
authored
Aug 19, 2004
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql_com.h:
still better names for enum; removing unneeded symbol
parent
96d9fdaa
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
22 deletions
+14
-22
VC++Files/winmysqladmin/mysql_com.h
VC++Files/winmysqladmin/mysql_com.h
+7
-11
include/mysql_com.h
include/mysql_com.h
+7
-11
No files found.
VC++Files/winmysqladmin/mysql_com.h
View file @
22a65bcf
...
...
@@ -164,23 +164,23 @@ enum enum_field_types { FIELD_TYPE_DECIMAL, FIELD_TYPE_TINY,
#define MYSQL_SHUTDOWN_KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
#define MYSQL_SHUTDOWN_KILLABLE_UPDATE (unsigned char)(1 << 3)
enum
enum_shutdown_level
{
enum
mysql_
enum_shutdown_level
{
/*
We want levels to be in growing order of hardness (because we use number
comparisons). Note that DEFAULT does not respect the growing property, but
it's ok.
*/
SHUTDOWN_
DEFAULT
=
0
,
DEFAULT
=
0
,
/* wait for existing connections to finish */
SHUTDOWN_
WAIT_CONNECTIONS
=
MYSQL_SHUTDOWN_KILLABLE_CONNECT
,
WAIT_CONNECTIONS
=
MYSQL_SHUTDOWN_KILLABLE_CONNECT
,
/* wait for existing trans to finish */
SHUTDOWN_
WAIT_TRANSACTIONS
=
MYSQL_SHUTDOWN_KILLABLE_TRANS
,
WAIT_TRANSACTIONS
=
MYSQL_SHUTDOWN_KILLABLE_TRANS
,
/* wait for existing updates to finish (=> no partial MyISAM update) */
SHUTDOWN_
WAIT_UPDATES
=
MYSQL_SHUTDOWN_KILLABLE_UPDATE
,
WAIT_UPDATES
=
MYSQL_SHUTDOWN_KILLABLE_UPDATE
,
/* flush InnoDB buffers and other storage engines' buffers*/
SHUTDOWN_
WAIT_ALL_BUFFERS
=
(
MYSQL_SHUTDOWN_KILLABLE_UPDATE
<<
1
),
WAIT_ALL_BUFFERS
=
(
MYSQL_SHUTDOWN_KILLABLE_UPDATE
<<
1
),
/* don't flush InnoDB buffers, flush other storage engines' buffers*/
SHUTDOWN_
WAIT_CRITICAL_BUFFERS
=
(
MYSQL_SHUTDOWN_KILLABLE_UPDATE
<<
1
)
+
1
,
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
,
...
...
@@ -188,10 +188,6 @@ enum enum_shutdown_level {
KILL_CONNECTION
=
255
};
/* Same value and type (0, enum_shutdown_level) but not same meaning */
#define NOT_KILLED SHUTDOWN_DEFAULT
extern
unsigned
long
max_allowed_packet
;
extern
unsigned
long
net_buffer_length
;
...
...
include/mysql_com.h
View file @
22a65bcf
...
...
@@ -232,23 +232,23 @@ enum enum_field_types { MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
#define MYSQL_SHUTDOWN_KILLABLE_LOCK_TABLE (unsigned char)(1 << 2)
#define MYSQL_SHUTDOWN_KILLABLE_UPDATE (unsigned char)(1 << 3)
enum
enum_shutdown_level
{
enum
mysql_
enum_shutdown_level
{
/*
We want levels to be in growing order of hardness (because we use number
comparisons). Note that DEFAULT does not respect the growing property, but
it's ok.
*/
SHUTDOWN_
DEFAULT
=
0
,
DEFAULT
=
0
,
/* wait for existing connections to finish */
SHUTDOWN_
WAIT_CONNECTIONS
=
MYSQL_SHUTDOWN_KILLABLE_CONNECT
,
WAIT_CONNECTIONS
=
MYSQL_SHUTDOWN_KILLABLE_CONNECT
,
/* wait for existing trans to finish */
SHUTDOWN_
WAIT_TRANSACTIONS
=
MYSQL_SHUTDOWN_KILLABLE_TRANS
,
WAIT_TRANSACTIONS
=
MYSQL_SHUTDOWN_KILLABLE_TRANS
,
/* wait for existing updates to finish (=> no partial MyISAM update) */
SHUTDOWN_
WAIT_UPDATES
=
MYSQL_SHUTDOWN_KILLABLE_UPDATE
,
WAIT_UPDATES
=
MYSQL_SHUTDOWN_KILLABLE_UPDATE
,
/* flush InnoDB buffers and other storage engines' buffers*/
SHUTDOWN_
WAIT_ALL_BUFFERS
=
(
MYSQL_SHUTDOWN_KILLABLE_UPDATE
<<
1
),
WAIT_ALL_BUFFERS
=
(
MYSQL_SHUTDOWN_KILLABLE_UPDATE
<<
1
),
/* don't flush InnoDB buffers, flush other storage engines' buffers*/
SHUTDOWN_
WAIT_CRITICAL_BUFFERS
=
(
MYSQL_SHUTDOWN_KILLABLE_UPDATE
<<
1
)
+
1
,
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
,
...
...
@@ -256,10 +256,6 @@ enum enum_shutdown_level {
KILL_CONNECTION
=
255
};
/* Same value and type (0, enum_shutdown_level) but not same meaning */
#define NOT_KILLED SHUTDOWN_DEFAULT
/* options for mysql_set_option */
enum
enum_mysql_set_option
{
...
...
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