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
c31d49d5
Commit
c31d49d5
authored
Aug 19, 2004
by
guilhem@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot@213.136.52.20:/home/bk/mysql-4.1
into mysql.com:/home/mysql_src/mysql-4.1-874
parents
7c69afaf
f5228a60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
54 additions
and
32 deletions
+54
-32
VC++Files/winmysqladmin/mysql_com.h
VC++Files/winmysqladmin/mysql_com.h
+27
-16
include/mysql_com.h
include/mysql_com.h
+27
-16
No files found.
VC++Files/winmysqladmin/mysql_com.h
View file @
c31d49d5
...
@@ -155,25 +155,32 @@ enum enum_field_types { FIELD_TYPE_DECIMAL, FIELD_TYPE_TINY,
...
@@ -155,25 +155,32 @@ enum enum_field_types { FIELD_TYPE_DECIMAL, FIELD_TYPE_TINY,
#define FIELD_TYPE_CHAR FIELD_TYPE_TINY
/* For compability */
#define FIELD_TYPE_CHAR FIELD_TYPE_TINY
/* For compability */
#define FIELD_TYPE_INTERVAL FIELD_TYPE_ENUM
/* For compability */
#define FIELD_TYPE_INTERVAL FIELD_TYPE_ENUM
/* For compability */
/* 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)
enum
enum_shutdown_level
{
enum
enum_shutdown_level
{
/*
/*
We want levels to be in growing order of hardness. So we leave room
We want levels to be in growing order of hardness (because we use number
for future intermediate levels. For now, escalating one level is += 10;
comparisons). Note that DEFAULT does not respect the growing property, but
later if we insert new levels in between we will need a function
it's ok.
next_shutdown_level(level). Note that DEFAULT does not respect the
growing property.
*/
*/
SHUTDOWN_DEFAULT
=
0
,
/* mapped to WAIT_ALL_BUFFERS for now */
SHUTDOWN_DEFAULT
=
0
,
/*
/*
wait for existing connections to finish */
Here is the list in growing order (the next does the previous plus
SHUTDOWN_WAIT_CONNECTIONS
=
KILLABLE_CONNECT
,
something). WAIT_ALL_BUFFERS is what we have now. Others are "this MySQL
/* wait for existing trans to finish */
server does not support this shutdown level yet".
SHUTDOWN_WAIT_TRANSACTIONS
=
KILLABLE_TRANS
,
*/
/* wait for existing updates to finish (=> no partial MyISAM update)
*/
SHUTDOWN_WAIT_
CONNECTIONS
=
10
,
/* wait for existing connections to finish */
SHUTDOWN_WAIT_
UPDATES
=
KILLABLE_UPDATE
,
SHUTDOWN_WAIT_TRANSACTIONS
=
20
,
/* wait for existing trans to finish
*/
/* flush InnoDB buffers and other storage engines' buffers
*/
SHUTDOWN_WAIT_
STATEMENTS
=
30
,
/* wait for existing updating stmts to finish */
SHUTDOWN_WAIT_
ALL_BUFFERS
=
(
KILLABLE_UPDATE
<<
1
),
SHUTDOWN_WAIT_ALL_BUFFERS
=
40
,
/* flush InnoDB buffers
*/
/* don't flush InnoDB buffers, flush other storage engines' buffers
*/
SHUTDOWN_WAIT_CRITICAL_BUFFERS
=
50
,
/* flush MyISAM buffs (no corruption) */
SHUTDOWN_WAIT_CRITICAL_BUFFERS
=
(
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
,
...
@@ -181,6 +188,10 @@ enum enum_shutdown_level {
...
@@ -181,6 +188,10 @@ enum enum_shutdown_level {
KILL_CONNECTION
=
255
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
max_allowed_packet
;
extern
unsigned
long
net_buffer_length
;
extern
unsigned
long
net_buffer_length
;
...
...
include/mysql_com.h
View file @
c31d49d5
...
@@ -223,25 +223,32 @@ enum enum_field_types { MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
...
@@ -223,25 +223,32 @@ enum enum_field_types { MYSQL_TYPE_DECIMAL, MYSQL_TYPE_TINY,
#define FIELD_TYPE_INTERVAL MYSQL_TYPE_ENUM
#define FIELD_TYPE_INTERVAL MYSQL_TYPE_ENUM
#define FIELD_TYPE_GEOMETRY MYSQL_TYPE_GEOMETRY
#define FIELD_TYPE_GEOMETRY MYSQL_TYPE_GEOMETRY
/* 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)
enum
enum_shutdown_level
{
enum
enum_shutdown_level
{
/*
/*
We want levels to be in growing order of hardness. So we leave room
We want levels to be in growing order of hardness (because we use number
for future intermediate levels. For now, escalating one level is += 10;
comparisons). Note that DEFAULT does not respect the growing property, but
later if we insert new levels in between we will need a function
it's ok.
next_shutdown_level(level). Note that DEFAULT does not respect the
growing property.
*/
*/
SHUTDOWN_DEFAULT
=
0
,
/* mapped to WAIT_ALL_BUFFERS for now */
SHUTDOWN_DEFAULT
=
0
,
/*
/*
wait for existing connections to finish */
Here is the list in growing order (the next does the previous plus
SHUTDOWN_WAIT_CONNECTIONS
=
KILLABLE_CONNECT
,
something). WAIT_ALL_BUFFERS is what we have now. Others are "this MySQL
/* wait for existing trans to finish */
server does not support this shutdown level yet".
SHUTDOWN_WAIT_TRANSACTIONS
=
KILLABLE_TRANS
,
*/
/* wait for existing updates to finish (=> no partial MyISAM update)
*/
SHUTDOWN_WAIT_
CONNECTIONS
=
10
,
/* wait for existing connections to finish */
SHUTDOWN_WAIT_
UPDATES
=
KILLABLE_UPDATE
,
SHUTDOWN_WAIT_TRANSACTIONS
=
20
,
/* wait for existing trans to finish
*/
/* flush InnoDB buffers and other storage engines' buffers
*/
SHUTDOWN_WAIT_
STATEMENTS
=
30
,
/* wait for existing updating stmts to finish */
SHUTDOWN_WAIT_
ALL_BUFFERS
=
(
KILLABLE_UPDATE
<<
1
),
SHUTDOWN_WAIT_ALL_BUFFERS
=
40
,
/* flush InnoDB buffers
*/
/* don't flush InnoDB buffers, flush other storage engines' buffers
*/
SHUTDOWN_WAIT_CRITICAL_BUFFERS
=
50
,
/* flush MyISAM buffs (no corruption) */
SHUTDOWN_WAIT_CRITICAL_BUFFERS
=
(
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
,
...
@@ -249,6 +256,10 @@ enum enum_shutdown_level {
...
@@ -249,6 +256,10 @@ enum enum_shutdown_level {
KILL_CONNECTION
=
255
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 */
/* options for mysql_set_option */
enum
enum_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