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
69ca5238
Commit
69ca5238
authored
Jul 16, 2013
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-4547 [PATCH] Make REFRESH_* constants to be 64-bit in 32-bit compilation
REFRESH_FAST do not fit in 32 bit
parent
c697aa1f
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
33 additions
and
33 deletions
+33
-33
include/mysql_com.h
include/mysql_com.h
+29
-29
sql/sql_lex.h
sql/sql_lex.h
+1
-1
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
sql/sql_reload.cc
sql/sql_reload.cc
+1
-1
sql/sql_reload.h
sql/sql_reload.h
+1
-1
No files found.
include/mysql_com.h
View file @
69ca5238
...
...
@@ -153,39 +153,39 @@ enum enum_server_command
#define HAS_EXPLICIT_VALUE (1 << 26)
/* An INSERT/UPDATE operation supplied
an explicit default value */
#define REFRESH_GRANT (1UL << 0)
/* Refresh grant tables */
#define REFRESH_LOG (1UL << 1)
/* Start on new log file */
#define REFRESH_TABLES (1UL << 2)
/* close all tables */
#define REFRESH_HOSTS (1UL << 3)
/* Flush host cache */
#define REFRESH_STATUS (1UL << 4)
/* Flush status variables */
#define REFRESH_THREADS (1UL << 5)
/* Flush thread cache */
#define REFRESH_SLAVE (1UL << 6)
/* Reset master info and restart slave
#define REFRESH_GRANT (1UL
L
<< 0)
/* Refresh grant tables */
#define REFRESH_LOG (1UL
L
<< 1)
/* Start on new log file */
#define REFRESH_TABLES (1UL
L
<< 2)
/* close all tables */
#define REFRESH_HOSTS (1UL
L
<< 3)
/* Flush host cache */
#define REFRESH_STATUS (1UL
L
<< 4)
/* Flush status variables */
#define REFRESH_THREADS (1UL
L
<< 5)
/* Flush thread cache */
#define REFRESH_SLAVE (1UL
L
<< 6)
/* Reset master info and restart slave
thread */
#define REFRESH_MASTER (1UL << 7)
/* Remove all bin logs in the index
#define REFRESH_MASTER (1UL
L
<< 7)
/* Remove all bin logs in the index
and truncate the index */
/* The following can't be set with mysql_refresh() */
#define REFRESH_ERROR_LOG (1UL << 8)
/* Rotate only the erorr log */
#define REFRESH_ENGINE_LOG (1UL << 9)
/* Flush all storage engine logs */
#define REFRESH_BINARY_LOG (1UL << 10)
/* Flush the binary log */
#define REFRESH_RELAY_LOG (1UL << 11)
/* Flush the relay log */
#define REFRESH_GENERAL_LOG (1UL << 12)
/* Flush the general log */
#define REFRESH_SLOW_LOG (1UL << 13)
/* Flush the slow query log */
#define REFRESH_READ_LOCK (1UL << 14)
/* Lock tables for read */
#define REFRESH_CHECKPOINT (1UL << 15)
/* With REFRESH_READ_LOCK: block checkpoints too */
#define REFRESH_QUERY_CACHE (1UL << 16)
/* clear the query cache */
#define REFRESH_QUERY_CACHE_FREE (1UL << 17)
/* pack query cache */
#define REFRESH_DES_KEY_FILE (1UL << 18)
#define REFRESH_USER_RESOURCES (1UL << 19)
#define REFRESH_TABLE_STATS (1UL << 20)
/* Refresh table stats hash table */
#define REFRESH_INDEX_STATS (1UL << 21)
/* Refresh index stats hash table */
#define REFRESH_USER_STATS (1UL << 22)
/* Refresh user stats hash table */
#define REFRESH_CLIENT_STATS (1UL << 23)
/* Refresh client stats hash table */
#define REFRESH_FAST (1UL << 31)
/* Intern flag */
#define REFRESH_ERROR_LOG (1UL
L
<< 8)
/* Rotate only the erorr log */
#define REFRESH_ENGINE_LOG (1UL
L
<< 9)
/* Flush all storage engine logs */
#define REFRESH_BINARY_LOG (1UL
L
<< 10)
/* Flush the binary log */
#define REFRESH_RELAY_LOG (1UL
L
<< 11)
/* Flush the relay log */
#define REFRESH_GENERAL_LOG (1UL
L
<< 12)
/* Flush the general log */
#define REFRESH_SLOW_LOG (1UL
L
<< 13)
/* Flush the slow query log */
#define REFRESH_READ_LOCK (1UL
L
<< 14)
/* Lock tables for read */
#define REFRESH_CHECKPOINT (1UL
L
<< 15)
/* With REFRESH_READ_LOCK: block checkpoints too */
#define REFRESH_QUERY_CACHE (1UL
L
<< 16)
/* clear the query cache */
#define REFRESH_QUERY_CACHE_FREE (1UL
L
<< 17)
/* pack query cache */
#define REFRESH_DES_KEY_FILE (1UL
L
<< 18)
#define REFRESH_USER_RESOURCES (1UL
L
<< 19)
#define REFRESH_TABLE_STATS (1UL
L
<< 20)
/* Refresh table stats hash table */
#define REFRESH_INDEX_STATS (1UL
L
<< 21)
/* Refresh index stats hash table */
#define REFRESH_USER_STATS (1UL
L
<< 22)
/* Refresh user stats hash table */
#define REFRESH_CLIENT_STATS (1UL
L
<< 23)
/* Refresh client stats hash table */
#define REFRESH_FAST (1UL
L
<< 31)
/* Intern flag */
#define CLIENT_LONG_PASSWORD 1
/* new more secure passwords */
#define CLIENT_FOUND_ROWS 2
/* Found instead of affected rows */
...
...
sql/sql_lex.h
View file @
69ca5238
...
...
@@ -2375,7 +2375,7 @@ struct LEX: public Query_tables_list
LEX_STRING
relay_log_connection_name
;
USER_RESOURCES
mqh
;
LEX_RESET_SLAVE
reset_slave_info
;
ulong
type
;
ulong
long
type
;
/* The following is used by KILL */
killed_state
kill_signal
;
killed_type
kill_type
;
...
...
sql/sql_parse.cc
View file @
69ca5238
...
...
@@ -1489,7 +1489,7 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
lex_start
(
thd
);
status_var_increment
(
thd
->
status_var
.
com_stat
[
SQLCOM_FLUSH
]);
ulong
options
=
(
u
long
)
(
uchar
)
packet
[
0
];
ulong
long
options
=
(
ulong
long
)
(
uchar
)
packet
[
0
];
if
(
trans_commit_implicit
(
thd
))
break
;
thd
->
mdl_context
.
release_transactional_locks
();
...
...
sql/sql_reload.cc
View file @
69ca5238
...
...
@@ -53,7 +53,7 @@ static void disable_checkpoints(THD *thd);
@retval !=0 Error; thd->killed is set or thd->is_error() is true
*/
bool
reload_acl_and_cache
(
THD
*
thd
,
unsigned
long
options
,
bool
reload_acl_and_cache
(
THD
*
thd
,
unsigned
long
long
options
,
TABLE_LIST
*
tables
,
int
*
write_to_binlog
)
{
bool
result
=
0
;
...
...
sql/sql_reload.h
View file @
69ca5238
...
...
@@ -18,7 +18,7 @@
class
THD
;
struct
TABLE_LIST
;
bool
reload_acl_and_cache
(
THD
*
thd
,
unsigned
long
options
,
bool
reload_acl_and_cache
(
THD
*
thd
,
unsigned
long
long
options
,
TABLE_LIST
*
tables
,
int
*
write_to_binlog
);
bool
flush_tables_with_read_lock
(
THD
*
thd
,
TABLE_LIST
*
all_tables
);
...
...
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