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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
7ca49db5
Commit
7ca49db5
authored
Sep 26, 2012
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge from 5.1.
parents
9ae90964
37155bf7
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
44 additions
and
43 deletions
+44
-43
config/ac-macros/misc.m4
config/ac-macros/misc.m4
+5
-6
sql/create_options.cc
sql/create_options.cc
+2
-2
sql/mysqld.cc
sql/mysqld.cc
+25
-25
storage/maria/compat_aliases.cc
storage/maria/compat_aliases.cc
+3
-3
storage/maria/ha_maria.cc
storage/maria/ha_maria.cc
+1
-1
storage/maria/ma_ft_nlq_search.c
storage/maria/ma_ft_nlq_search.c
+1
-0
storage/myisam/ft_nlq_search.c
storage/myisam/ft_nlq_search.c
+1
-0
storage/xtradb/handler/ha_innodb.cc
storage/xtradb/handler/ha_innodb.cc
+6
-6
No files found.
config/ac-macros/misc.m4
View file @
7ca49db5
...
@@ -456,10 +456,8 @@ fi
...
@@ -456,10 +456,8 @@ fi
AC_DEFUN([MYSQL_STACK_DIRECTION],
AC_DEFUN([MYSQL_STACK_DIRECTION],
[AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
[AC_CACHE_CHECK(stack direction for C alloca, ac_cv_c_stack_direction,
[AC_TRY_RUN([#include <stdlib.h>
[AC_TRY_RUN([#include <stdlib.h>
/* Prevent compiler optimization by HP's compiler, see bug#42213 */
/* Prevent compiler inline optimization, see bug#42213 */
#if defined(__HP_cc) || defined (__HP_aCC) || defined (__hpux)
int (volatile *ptr_f)();
#pragma noinline
#endif
int find_stack_direction ()
int find_stack_direction ()
{
{
static char *addr = 0;
static char *addr = 0;
...
@@ -467,14 +465,15 @@ AC_DEFUN([MYSQL_STACK_DIRECTION],
...
@@ -467,14 +465,15 @@ AC_DEFUN([MYSQL_STACK_DIRECTION],
if (addr == 0)
if (addr == 0)
{
{
addr = &dummy;
addr = &dummy;
return
find_stack_direction
();
return
(*prt_f)
();
}
}
else
else
return (&dummy > addr) ? 1 : -1;
return (&dummy > addr) ? 1 : -1;
}
}
int main ()
int main ()
{
{
exit (find_stack_direction() < 0);
ptr_f = find_stack_direction;
exit ((*ptr_f)() < 0);
}], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1,
}], ac_cv_c_stack_direction=1, ac_cv_c_stack_direction=-1,
ac_cv_c_stack_direction=)])
ac_cv_c_stack_direction=)])
AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
AC_DEFINE_UNQUOTED(STACK_DIRECTION, $ac_cv_c_stack_direction)
...
...
sql/create_options.cc
View file @
7ca49db5
...
@@ -138,8 +138,8 @@ static bool set_one_value(ha_create_table_option *opt,
...
@@ -138,8 +138,8 @@ static bool set_one_value(ha_create_table_option *opt,
my_option
optp
=
my_option
optp
=
{
opt
->
name
,
1
,
0
,
(
uchar
**
)
val
,
0
,
0
,
GET_ULL
,
{
opt
->
name
,
1
,
0
,
(
uchar
**
)
val
,
0
,
0
,
GET_ULL
,
REQUIRED_ARG
,
opt
->
def_value
,
opt
->
min_value
,
opt
->
max
_value
,
REQUIRED_ARG
,
(
longlong
)
opt
->
def_value
,
(
longlong
)
opt
->
min
_value
,
0
,
(
long
)
opt
->
block_size
,
0
};
opt
->
max_value
,
0
,
(
long
)
opt
->
block_size
,
0
};
ulonglong
orig_val
=
strtoull
(
value
->
str
,
NULL
,
10
);
ulonglong
orig_val
=
strtoull
(
value
->
str
,
NULL
,
10
);
my_bool
unused
;
my_bool
unused
;
...
...
sql/mysqld.cc
View file @
7ca49db5
...
@@ -6076,7 +6076,7 @@ struct my_option my_long_options[] =
...
@@ -6076,7 +6076,7 @@ struct my_option my_long_options[] =
{
"debug-crc-break"
,
OPT_DEBUG_CRC
,
{
"debug-crc-break"
,
OPT_DEBUG_CRC
,
"Call my_debug_put_break_here() if crc matches this number (for debug)."
,
"Call my_debug_put_break_here() if crc matches this number (for debug)."
,
&
opt_my_crc_dbug_check
,
&
opt_my_crc_dbug_check
,
&
opt_my_crc_dbug_check
,
&
opt_my_crc_dbug_check
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
0
,
0
,
~
(
ulong
)
0L
,
0
,
0
,
0
},
0
,
GET_ULONG
,
REQUIRED_ARG
,
0
,
0
,
~
(
ulong
long
)
0
,
0
,
0
,
0
},
{
"debug-flush"
,
OPT_DEBUG_FLUSH
,
"Default debug log with flush after write"
,
{
"debug-flush"
,
OPT_DEBUG_FLUSH
,
"Default debug log with flush after write"
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
{
"debug-assert-if-crashed-table"
,
OPT_DEBUG_ASSERT_IF_CRASHED_TABLE
,
{
"debug-assert-if-crashed-table"
,
OPT_DEBUG_ASSERT_IF_CRASHED_TABLE
,
...
@@ -6334,7 +6334,7 @@ each time the SQL thread starts.",
...
@@ -6334,7 +6334,7 @@ each time the SQL thread starts.",
#ifdef HAVE_MMAP
#ifdef HAVE_MMAP
{
"log-tc-size"
,
OPT_LOG_TC_SIZE
,
"Size of transaction coordinator log."
,
{
"log-tc-size"
,
OPT_LOG_TC_SIZE
,
"Size of transaction coordinator log."
,
&
opt_tc_log_size
,
&
opt_tc_log_size
,
0
,
GET_ULONG
,
&
opt_tc_log_size
,
&
opt_tc_log_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
TC_LOG_MIN_SIZE
,
TC_LOG_MIN_SIZE
,
(
longlong
)
ULONG_MAX
,
0
,
REQUIRED_ARG
,
TC_LOG_MIN_SIZE
,
TC_LOG_MIN_SIZE
,
(
u
longlong
)
ULONG_MAX
,
0
,
TC_LOG_PAGE_SIZE
,
0
},
TC_LOG_PAGE_SIZE
,
0
},
#endif
#endif
{
"log-update"
,
OPT_UPDATE_LOG
,
{
"log-update"
,
OPT_UPDATE_LOG
,
...
@@ -6899,12 +6899,12 @@ each time the SQL thread starts.",
...
@@ -6899,12 +6899,12 @@ each time the SQL thread starts.",
"during a transaction. If you often use big, multi-statement "
"during a transaction. If you often use big, multi-statement "
"transactions you can increase this to get more performance."
,
"transactions you can increase this to get more performance."
,
&
binlog_cache_size
,
&
binlog_cache_size
,
0
,
GET_ULONG
,
&
binlog_cache_size
,
&
binlog_cache_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
32
*
1024L
,
IO_SIZE
,
(
longlong
)
ULONG_MAX
,
0
,
IO_SIZE
,
0
},
REQUIRED_ARG
,
32
*
1024L
,
IO_SIZE
,
(
u
longlong
)
ULONG_MAX
,
0
,
IO_SIZE
,
0
},
{
"bulk_insert_buffer_size"
,
OPT_BULK_INSERT_BUFFER_SIZE
,
{
"bulk_insert_buffer_size"
,
OPT_BULK_INSERT_BUFFER_SIZE
,
"Size of tree cache used in bulk insert optimization. Note that this "
"Size of tree cache used in bulk insert optimization. Note that this "
"is a limit per thread."
,
&
global_system_variables
.
bulk_insert_buff_size
,
"is a limit per thread."
,
&
global_system_variables
.
bulk_insert_buff_size
,
&
max_system_variables
.
bulk_insert_buff_size
,
&
max_system_variables
.
bulk_insert_buff_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
8192
*
1024
,
0
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
0
,
GET_ULONG
,
REQUIRED_ARG
,
8192
*
1024
,
0
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
{
"connect_timeout"
,
OPT_CONNECT_TIMEOUT
,
{
"connect_timeout"
,
OPT_CONNECT_TIMEOUT
,
"The number of seconds the mysqld server is waiting for a connect packet "
"The number of seconds the mysqld server is waiting for a connect packet "
"before responding with 'Bad handshake'."
,
&
connect_timeout
,
&
connect_timeout
,
"before responding with 'Bad handshake'."
,
&
connect_timeout
,
&
connect_timeout
,
...
@@ -6929,7 +6929,7 @@ each time the SQL thread starts.",
...
@@ -6929,7 +6929,7 @@ each time the SQL thread starts.",
"will check if there are any SELECT statements pending. If so, it allows "
"will check if there are any SELECT statements pending. If so, it allows "
"these to execute before continuing."
,
"these to execute before continuing."
,
&
delayed_insert_limit
,
&
delayed_insert_limit
,
0
,
GET_ULONG
,
&
delayed_insert_limit
,
&
delayed_insert_limit
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
DELAYED_LIMIT
,
1
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
REQUIRED_ARG
,
DELAYED_LIMIT
,
1
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
{
"delayed_insert_timeout"
,
OPT_DELAYED_INSERT_TIMEOUT
,
{
"delayed_insert_timeout"
,
OPT_DELAYED_INSERT_TIMEOUT
,
"How long a INSERT DELAYED thread should wait for INSERT statements before terminating."
,
"How long a INSERT DELAYED thread should wait for INSERT statements before terminating."
,
&
delayed_insert_timeout
,
&
delayed_insert_timeout
,
0
,
&
delayed_insert_timeout
,
&
delayed_insert_timeout
,
0
,
...
@@ -6939,7 +6939,7 @@ each time the SQL thread starts.",
...
@@ -6939,7 +6939,7 @@ each time the SQL thread starts.",
"If the queue becomes full, any client that does INSERT DELAYED will wait "
"If the queue becomes full, any client that does INSERT DELAYED will wait "
"until there is room in the queue again."
,
"until there is room in the queue again."
,
&
delayed_queue_size
,
&
delayed_queue_size
,
0
,
GET_ULONG
,
&
delayed_queue_size
,
&
delayed_queue_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
DELAYED_QUEUE_SIZE
,
1
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
REQUIRED_ARG
,
DELAYED_QUEUE_SIZE
,
1
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
{
"div_precision_increment"
,
OPT_DIV_PRECINCREMENT
,
{
"div_precision_increment"
,
OPT_DIV_PRECINCREMENT
,
"Precision of the result of '/' operator will be increased on that value."
,
"Precision of the result of '/' operator will be increased on that value."
,
&
global_system_variables
.
div_precincrement
,
&
global_system_variables
.
div_precincrement
,
...
@@ -6979,7 +6979,7 @@ each time the SQL thread starts.",
...
@@ -6979,7 +6979,7 @@ each time the SQL thread starts.",
"The maximum length of the result of function group_concat."
,
"The maximum length of the result of function group_concat."
,
&
global_system_variables
.
group_concat_max_len
,
&
global_system_variables
.
group_concat_max_len
,
&
max_system_variables
.
group_concat_max_len
,
0
,
GET_ULONG
,
&
max_system_variables
.
group_concat_max_len
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
1024
,
4
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
REQUIRED_ARG
,
1024
,
4
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
{
"interactive_timeout"
,
OPT_INTERACTIVE_TIMEOUT
,
{
"interactive_timeout"
,
OPT_INTERACTIVE_TIMEOUT
,
"The number of seconds the server waits for activity on an interactive "
"The number of seconds the server waits for activity on an interactive "
"connection before closing it."
,
"connection before closing it."
,
...
@@ -6990,7 +6990,7 @@ each time the SQL thread starts.",
...
@@ -6990,7 +6990,7 @@ each time the SQL thread starts.",
"The size of the buffer that is used for full joins."
,
"The size of the buffer that is used for full joins."
,
&
global_system_variables
.
join_buff_size
,
&
global_system_variables
.
join_buff_size
,
&
max_system_variables
.
join_buff_size
,
0
,
GET_ULONG
,
&
max_system_variables
.
join_buff_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
128
*
1024L
,
IO_SIZE
*
2
+
MALLOC_OVERHEAD
,
(
longlong
)
ULONG_MAX
,
REQUIRED_ARG
,
128
*
1024L
,
IO_SIZE
*
2
+
MALLOC_OVERHEAD
,
(
u
longlong
)
ULONG_MAX
,
MALLOC_OVERHEAD
,
IO_SIZE
,
0
},
MALLOC_OVERHEAD
,
IO_SIZE
,
0
},
{
"keep_files_on_create"
,
OPT_KEEP_FILES_ON_CREATE
,
{
"keep_files_on_create"
,
OPT_KEEP_FILES_ON_CREATE
,
"Don't overwrite stale .MYD and .MYI even if no directory is specified."
,
"Don't overwrite stale .MYD and .MYI even if no directory is specified."
,
...
@@ -7011,7 +7011,7 @@ each time the SQL thread starts.",
...
@@ -7011,7 +7011,7 @@ each time the SQL thread starts.",
"This specifies the percentage ratio of that number of hits to the total "
"This specifies the percentage ratio of that number of hits to the total "
"number of blocks in key cache."
,
"number of blocks in key cache."
,
&
dflt_key_cache_var
.
param_age_threshold
,
0
,
0
,
&
dflt_key_cache_var
.
param_age_threshold
,
0
,
0
,
(
GET_ULONG
|
GET_ASK_ADDR
),
REQUIRED_ARG
,
300
,
100
,
(
longlong
)
ULONG_MAX
,
(
GET_ULONG
|
GET_ASK_ADDR
),
REQUIRED_ARG
,
300
,
100
,
(
u
longlong
)
ULONG_MAX
,
0
,
100
,
0
},
0
,
100
,
0
},
{
"key_cache_block_size"
,
OPT_KEY_CACHE_BLOCK_SIZE
,
{
"key_cache_block_size"
,
OPT_KEY_CACHE_BLOCK_SIZE
,
"The default size of key cache blocks."
,
"The default size of key cache blocks."
,
...
@@ -7037,7 +7037,7 @@ each time the SQL thread starts.",
...
@@ -7037,7 +7037,7 @@ each time the SQL thread starts.",
"this to reduce output on slow query log)"
,
"this to reduce output on slow query log)"
,
&
global_system_variables
.
log_slow_rate_limit
,
&
global_system_variables
.
log_slow_rate_limit
,
&
max_system_variables
.
log_slow_rate_limit
,
0
,
GET_ULONG
,
&
max_system_variables
.
log_slow_rate_limit
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
1
,
1
,
~
0L
,
0
,
1L
,
0
},
REQUIRED_ARG
,
1
,
1
,
~
0
UL
L
,
0
,
1L
,
0
},
{
"log-slow-verbosity"
,
OPT_LOG_SLOW_VERBOSITY
,
{
"log-slow-verbosity"
,
OPT_LOG_SLOW_VERBOSITY
,
"Choose how verbose the messages to your slow log will be. Multiple flags "
"Choose how verbose the messages to your slow log will be. Multiple flags "
"allowed in a comma-separated string. [query_plan, innodb]"
,
"allowed in a comma-separated string. [query_plan, innodb]"
,
...
@@ -7088,7 +7088,7 @@ each time the SQL thread starts.",
...
@@ -7088,7 +7088,7 @@ each time the SQL thread starts.",
"If there is more than this number of interrupted connections from a host "
"If there is more than this number of interrupted connections from a host "
"this host will be blocked from further connections."
,
"this host will be blocked from further connections."
,
&
max_connect_errors
,
&
max_connect_errors
,
0
,
GET_ULONG
,
&
max_connect_errors
,
&
max_connect_errors
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
MAX_CONNECT_ERRORS
,
1
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
REQUIRED_ARG
,
MAX_CONNECT_ERRORS
,
1
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
// Default max_connections of 151 is larger than Apache's default max
// Default max_connections of 151 is larger than Apache's default max
// children, to avoid "too many connections" error in a common setup
// children, to avoid "too many connections" error in a common setup
{
"max_connections"
,
OPT_MAX_CONNECTIONS
,
{
"max_connections"
,
OPT_MAX_CONNECTIONS
,
...
@@ -7157,7 +7157,7 @@ each time the SQL thread starts.",
...
@@ -7157,7 +7157,7 @@ each time the SQL thread starts.",
"Maximum number of temporary tables a client can keep open at a time."
,
"Maximum number of temporary tables a client can keep open at a time."
,
&
global_system_variables
.
max_tmp_tables
,
&
global_system_variables
.
max_tmp_tables
,
&
max_system_variables
.
max_tmp_tables
,
0
,
GET_ULONG
,
&
max_system_variables
.
max_tmp_tables
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
32
,
1
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
REQUIRED_ARG
,
32
,
1
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
{
"max_user_connections"
,
OPT_MAX_USER_CONNECTIONS
,
{
"max_user_connections"
,
OPT_MAX_USER_CONNECTIONS
,
"The maximum number of active connections for a single user (0 = no limit)."
,
"The maximum number of active connections for a single user (0 = no limit)."
,
&
max_user_connections
,
&
max_user_connections
,
0
,
GET_UINT
,
&
max_user_connections
,
&
max_user_connections
,
0
,
GET_UINT
,
...
@@ -7170,12 +7170,12 @@ each time the SQL thread starts.",
...
@@ -7170,12 +7170,12 @@ each time the SQL thread starts.",
"Don't log queries which examine less than min_examined_row_limit rows to file."
,
"Don't log queries which examine less than min_examined_row_limit rows to file."
,
&
global_system_variables
.
min_examined_row_limit
,
&
global_system_variables
.
min_examined_row_limit
,
&
max_system_variables
.
min_examined_row_limit
,
0
,
GET_ULONG
,
&
max_system_variables
.
min_examined_row_limit
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
0
,
0
,
(
longlong
)
ULONG_MAX
,
0
,
1L
,
0
},
REQUIRED_ARG
,
0
,
0
,
(
u
longlong
)
ULONG_MAX
,
0
,
1L
,
0
},
{
"multi_range_count"
,
OPT_MULTI_RANGE_COUNT
,
{
"multi_range_count"
,
OPT_MULTI_RANGE_COUNT
,
"Number of key ranges to request at once."
,
"Number of key ranges to request at once."
,
&
global_system_variables
.
multi_range_count
,
&
global_system_variables
.
multi_range_count
,
&
max_system_variables
.
multi_range_count
,
0
,
&
max_system_variables
.
multi_range_count
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
256
,
1
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
GET_ULONG
,
REQUIRED_ARG
,
256
,
1
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
{
"myisam_block_size"
,
OPT_MYISAM_BLOCK_SIZE
,
{
"myisam_block_size"
,
OPT_MYISAM_BLOCK_SIZE
,
"Block size to be used for MyISAM index pages."
,
"Block size to be used for MyISAM index pages."
,
&
opt_myisam_block_size
,
&
opt_myisam_block_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
&
opt_myisam_block_size
,
&
opt_myisam_block_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
...
@@ -7211,7 +7211,7 @@ each time the SQL thread starts.",
...
@@ -7211,7 +7211,7 @@ each time the SQL thread starts.",
"disables parallel repair."
,
"disables parallel repair."
,
&
global_system_variables
.
myisam_repair_threads
,
&
global_system_variables
.
myisam_repair_threads
,
&
max_system_variables
.
myisam_repair_threads
,
0
,
&
max_system_variables
.
myisam_repair_threads
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
1
,
1
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
GET_ULONG
,
REQUIRED_ARG
,
1
,
1
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
{
"myisam_sort_buffer_size"
,
OPT_MYISAM_SORT_BUFFER_SIZE
,
{
"myisam_sort_buffer_size"
,
OPT_MYISAM_SORT_BUFFER_SIZE
,
"The buffer that is allocated when sorting the index when doing a REPAIR "
"The buffer that is allocated when sorting the index when doing a REPAIR "
"or when creating indexes with CREATE INDEX or ALTER TABLE."
,
"or when creating indexes with CREATE INDEX or ALTER TABLE."
,
...
@@ -7242,7 +7242,7 @@ each time the SQL thread starts.",
...
@@ -7242,7 +7242,7 @@ each time the SQL thread starts.",
"If a read on a communication port is interrupted, retry this many times before giving up."
,
"If a read on a communication port is interrupted, retry this many times before giving up."
,
&
global_system_variables
.
net_retry_count
,
&
global_system_variables
.
net_retry_count
,
&
max_system_variables
.
net_retry_count
,
0
,
&
max_system_variables
.
net_retry_count
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
MYSQLD_NET_RETRY_COUNT
,
1
,
(
longlong
)
ULONG_MAX
,
GET_ULONG
,
REQUIRED_ARG
,
MYSQLD_NET_RETRY_COUNT
,
1
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
0
,
1
,
0
},
{
"net_write_timeout"
,
OPT_NET_WRITE_TIMEOUT
,
{
"net_write_timeout"
,
OPT_NET_WRITE_TIMEOUT
,
"Number of seconds to wait for a block to be written to a connection before "
"Number of seconds to wait for a block to be written to a connection before "
...
@@ -7312,19 +7312,19 @@ each time the SQL thread starts.",
...
@@ -7312,19 +7312,19 @@ each time the SQL thread starts.",
"Allocation block size for query parsing and execution."
,
"Allocation block size for query parsing and execution."
,
&
global_system_variables
.
query_alloc_block_size
,
&
global_system_variables
.
query_alloc_block_size
,
&
max_system_variables
.
query_alloc_block_size
,
0
,
GET_ULONG
,
&
max_system_variables
.
query_alloc_block_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
QUERY_ALLOC_BLOCK_SIZE
,
1024
,
(
longlong
)
ULONG_MAX
,
0
,
1024
,
REQUIRED_ARG
,
QUERY_ALLOC_BLOCK_SIZE
,
1024
,
(
u
longlong
)
ULONG_MAX
,
0
,
1024
,
0
},
0
},
#ifdef HAVE_QUERY_CACHE
#ifdef HAVE_QUERY_CACHE
{
"query_cache_limit"
,
OPT_QUERY_CACHE_LIMIT
,
{
"query_cache_limit"
,
OPT_QUERY_CACHE_LIMIT
,
"Don't cache results that are bigger than this."
,
"Don't cache results that are bigger than this."
,
&
query_cache_limit
,
&
query_cache_limit
,
0
,
GET_ULONG
,
&
query_cache_limit
,
&
query_cache_limit
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
1024
*
1024L
,
0
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
REQUIRED_ARG
,
1024
*
1024L
,
0
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
{
"query_cache_min_res_unit"
,
OPT_QUERY_CACHE_MIN_RES_UNIT
,
{
"query_cache_min_res_unit"
,
OPT_QUERY_CACHE_MIN_RES_UNIT
,
"Minimal size of unit in which space for results is allocated (last unit "
"Minimal size of unit in which space for results is allocated (last unit "
"will be trimmed after writing all result data)."
,
"will be trimmed after writing all result data)."
,
&
query_cache_min_res_unit
,
&
query_cache_min_res_unit
,
&
query_cache_min_res_unit
,
&
query_cache_min_res_unit
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
QUERY_CACHE_MIN_RESULT_DATA_SIZE
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
QUERY_CACHE_MIN_RESULT_DATA_SIZE
,
0
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
0
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
#endif
/*HAVE_QUERY_CACHE*/
#endif
/*HAVE_QUERY_CACHE*/
{
"query_cache_size"
,
OPT_QUERY_CACHE_SIZE
,
{
"query_cache_size"
,
OPT_QUERY_CACHE_SIZE
,
"The memory allocated to store results from old queries."
,
"The memory allocated to store results from old queries."
,
...
@@ -7348,13 +7348,13 @@ each time the SQL thread starts.",
...
@@ -7348,13 +7348,13 @@ each time the SQL thread starts.",
&
global_system_variables
.
query_prealloc_size
,
&
global_system_variables
.
query_prealloc_size
,
&
max_system_variables
.
query_prealloc_size
,
0
,
GET_ULONG
,
&
max_system_variables
.
query_prealloc_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
QUERY_ALLOC_PREALLOC_SIZE
,
QUERY_ALLOC_PREALLOC_SIZE
,
REQUIRED_ARG
,
QUERY_ALLOC_PREALLOC_SIZE
,
QUERY_ALLOC_PREALLOC_SIZE
,
(
longlong
)
ULONG_MAX
,
0
,
1024
,
0
},
(
u
longlong
)
ULONG_MAX
,
0
,
1024
,
0
},
{
"range_alloc_block_size"
,
OPT_RANGE_ALLOC_BLOCK_SIZE
,
{
"range_alloc_block_size"
,
OPT_RANGE_ALLOC_BLOCK_SIZE
,
"Allocation block size for storing ranges during optimization."
,
"Allocation block size for storing ranges during optimization."
,
&
global_system_variables
.
range_alloc_block_size
,
&
global_system_variables
.
range_alloc_block_size
,
&
max_system_variables
.
range_alloc_block_size
,
0
,
GET_ULONG
,
&
max_system_variables
.
range_alloc_block_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
RANGE_ALLOC_BLOCK_SIZE
,
RANGE_ALLOC_BLOCK_SIZE
,
REQUIRED_ARG
,
RANGE_ALLOC_BLOCK_SIZE
,
RANGE_ALLOC_BLOCK_SIZE
,
(
longlong
)
ULONG_MAX
,
0
,
1024
,
0
},
(
u
longlong
)
ULONG_MAX
,
0
,
1024
,
0
},
{
"read_buffer_size"
,
OPT_RECORD_BUFFER
,
{
"read_buffer_size"
,
OPT_RECORD_BUFFER
,
"Each thread that does a sequential scan allocates a buffer of this size "
"Each thread that does a sequential scan allocates a buffer of this size "
"for each table it scans. If you do many sequential scans, you may want "
"for each table it scans. If you do many sequential scans, you may want "
...
@@ -7423,7 +7423,7 @@ each time the SQL thread starts.",
...
@@ -7423,7 +7423,7 @@ each time the SQL thread starts.",
"Synchronously flush binary log to disk after every #th event. "
"Synchronously flush binary log to disk after every #th event. "
"Use 0 (default) to disable synchronous flushing."
,
"Use 0 (default) to disable synchronous flushing."
,
&
sync_binlog_period
,
&
sync_binlog_period
,
0
,
GET_ULONG
,
&
sync_binlog_period
,
&
sync_binlog_period
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
0
,
0
,
(
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
REQUIRED_ARG
,
0
,
0
,
(
u
longlong
)
ULONG_MAX
,
0
,
1
,
0
},
{
"sync-frm"
,
OPT_SYNC_FRM
,
"Sync .frm to disk on create. Enabled by default."
,
{
"sync-frm"
,
OPT_SYNC_FRM
,
"Sync .frm to disk on create. Enabled by default."
,
&
opt_sync_frm
,
&
opt_sync_frm
,
0
,
GET_BOOL
,
NO_ARG
,
1
,
0
,
&
opt_sync_frm
,
&
opt_sync_frm
,
0
,
GET_BOOL
,
NO_ARG
,
1
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
0
},
...
@@ -7468,7 +7468,7 @@ each time the SQL thread starts.",
...
@@ -7468,7 +7468,7 @@ each time the SQL thread starts.",
{
"thread_stack"
,
OPT_THREAD_STACK
,
{
"thread_stack"
,
OPT_THREAD_STACK
,
"The stack size for each thread."
,
&
my_thread_stack_size
,
"The stack size for each thread."
,
&
my_thread_stack_size
,
&
my_thread_stack_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
DEFAULT_THREAD_STACK
,
&
my_thread_stack_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
DEFAULT_THREAD_STACK
,
(
sizeof
(
void
*
)
<=
4
)
?
1024L
*
128L
:
((
256
-
16
)
*
1024L
),
(
longlong
)
ULONG_MAX
,
0
,
1024
,
0
},
(
sizeof
(
void
*
)
<=
4
)
?
1024L
*
128L
:
((
256
-
16
)
*
1024L
),
(
u
longlong
)
ULONG_MAX
,
0
,
1024
,
0
},
{
"time_format"
,
OPT_TIME_FORMAT
,
{
"time_format"
,
OPT_TIME_FORMAT
,
"The TIME format (for future)."
,
"The TIME format (for future)."
,
&
opt_date_time_formats
[
MYSQL_TIMESTAMP_TIME
],
&
opt_date_time_formats
[
MYSQL_TIMESTAMP_TIME
],
...
@@ -7484,13 +7484,13 @@ each time the SQL thread starts.",
...
@@ -7484,13 +7484,13 @@ each time the SQL thread starts.",
"Allocation block size for transactions to be stored in binary log."
,
"Allocation block size for transactions to be stored in binary log."
,
&
global_system_variables
.
trans_alloc_block_size
,
&
global_system_variables
.
trans_alloc_block_size
,
&
max_system_variables
.
trans_alloc_block_size
,
0
,
GET_ULONG
,
&
max_system_variables
.
trans_alloc_block_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
QUERY_ALLOC_BLOCK_SIZE
,
1024
,
(
longlong
)
ULONG_MAX
,
0
,
1024
,
REQUIRED_ARG
,
QUERY_ALLOC_BLOCK_SIZE
,
1024
,
(
u
longlong
)
ULONG_MAX
,
0
,
1024
,
0
},
0
},
{
"transaction_prealloc_size"
,
OPT_TRANS_PREALLOC_SIZE
,
{
"transaction_prealloc_size"
,
OPT_TRANS_PREALLOC_SIZE
,
"Persistent buffer for transactions to be stored in binary log."
,
"Persistent buffer for transactions to be stored in binary log."
,
&
global_system_variables
.
trans_prealloc_size
,
&
global_system_variables
.
trans_prealloc_size
,
&
max_system_variables
.
trans_prealloc_size
,
0
,
GET_ULONG
,
&
max_system_variables
.
trans_prealloc_size
,
0
,
GET_ULONG
,
REQUIRED_ARG
,
TRANS_ALLOC_PREALLOC_SIZE
,
1024
,
(
longlong
)
ULONG_MAX
,
0
,
REQUIRED_ARG
,
TRANS_ALLOC_PREALLOC_SIZE
,
1024
,
(
u
longlong
)
ULONG_MAX
,
0
,
1024
,
0
},
1024
,
0
},
{
"thread_handling"
,
OPT_THREAD_HANDLING
,
{
"thread_handling"
,
OPT_THREAD_HANDLING
,
"Define threads usage for handling queries: "
"Define threads usage for handling queries: "
...
...
storage/maria/compat_aliases.cc
View file @
7ca49db5
...
@@ -88,7 +88,7 @@ ulong pagecache_age_threshold_alias;
...
@@ -88,7 +88,7 @@ ulong pagecache_age_threshold_alias;
static
MYSQL_SYSVAR_ULONG
(
pagecache_age_threshold
,
pagecache_age_threshold_alias
,
static
MYSQL_SYSVAR_ULONG
(
pagecache_age_threshold
,
pagecache_age_threshold_alias
,
PLUGIN_VAR_RQCMDARG
,
PLUGIN_VAR_RQCMDARG
,
"Deprecated, use --aria-pagecache-age-threshold instead"
,
"Deprecated, use --aria-pagecache-age-threshold instead"
,
0
,
0
,
300
,
100
,
~
0L
,
100
);
0
,
0
,
300
,
100
,
~
(
unsigned
long
)
0
,
100
);
ulonglong
pagecache_buffer_size_alias
;
ulonglong
pagecache_buffer_size_alias
;
static
MYSQL_SYSVAR_ULONGLONG
(
pagecache_buffer_size
,
pagecache_buffer_size_alias
,
static
MYSQL_SYSVAR_ULONGLONG
(
pagecache_buffer_size
,
pagecache_buffer_size_alias
,
...
@@ -110,12 +110,12 @@ static MYSQL_SYSVAR_SET(recover, recover_alias, PLUGIN_VAR_OPCMDARG,
...
@@ -110,12 +110,12 @@ static MYSQL_SYSVAR_SET(recover, recover_alias, PLUGIN_VAR_OPCMDARG,
ulong
repair_threads_alias
;
ulong
repair_threads_alias
;
static
MYSQL_THDVAR_ULONG
(
repair_threads
,
PLUGIN_VAR_RQCMDARG
,
static
MYSQL_THDVAR_ULONG
(
repair_threads
,
PLUGIN_VAR_RQCMDARG
,
"Deprecated, use --aria-repair-threads instead"
,
"Deprecated, use --aria-repair-threads instead"
,
0
,
0
,
1
,
1
,
~
0L
,
1
);
0
,
0
,
1
,
1
,
~
(
unsigned
long
)
0
,
1
);
ulong
sort_buffer_size_alias
;
ulong
sort_buffer_size_alias
;
static
MYSQL_THDVAR_ULONG
(
sort_buffer_size
,
PLUGIN_VAR_RQCMDARG
,
static
MYSQL_THDVAR_ULONG
(
sort_buffer_size
,
PLUGIN_VAR_RQCMDARG
,
"Deprecated, use --aria-sort-buffer-size instead"
,
"Deprecated, use --aria-sort-buffer-size instead"
,
0
,
0
,
128L
*
1024L
*
1024L
,
4
,
~
0L
,
1
);
0
,
0
,
128L
*
1024L
*
1024L
,
4
,
~
(
unsigned
long
)
0
,
1
);
ulong
stats_method_alias
;
ulong
stats_method_alias
;
static
MYSQL_THDVAR_ENUM
(
stats_method
,
PLUGIN_VAR_RQCMDARG
,
static
MYSQL_THDVAR_ENUM
(
stats_method
,
PLUGIN_VAR_RQCMDARG
,
...
...
storage/maria/ha_maria.cc
View file @
7ca49db5
...
@@ -229,7 +229,7 @@ static MYSQL_SYSVAR_ULONG(pagecache_age_threshold,
...
@@ -229,7 +229,7 @@ static MYSQL_SYSVAR_ULONG(pagecache_age_threshold,
"until it is considered aged enough to be downgraded to a warm block. "
"until it is considered aged enough to be downgraded to a warm block. "
"This specifies the percentage ratio of that number of hits to the "
"This specifies the percentage ratio of that number of hits to the "
"total number of blocks in the page cache."
,
0
,
0
,
"total number of blocks in the page cache."
,
0
,
0
,
300
,
100
,
~
0L
,
100
);
300
,
100
,
~
(
unsigned
long
)
0
,
100
);
static
MYSQL_SYSVAR_ULONGLONG
(
pagecache_buffer_size
,
pagecache_buffer_size
,
static
MYSQL_SYSVAR_ULONGLONG
(
pagecache_buffer_size
,
pagecache_buffer_size
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
...
...
storage/maria/ma_ft_nlq_search.c
View file @
7ca49db5
...
@@ -82,6 +82,7 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio)
...
@@ -82,6 +82,7 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio)
#error
#error
#endif
#endif
DBUG_ENTER
(
"walk_and_match"
);
DBUG_ENTER
(
"walk_and_match"
);
LINT_INIT
(
subkeys
.
i
);
word
->
weight
=
LWS_FOR_QUERY
;
word
->
weight
=
LWS_FOR_QUERY
;
...
...
storage/myisam/ft_nlq_search.c
View file @
7ca49db5
...
@@ -83,6 +83,7 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio)
...
@@ -83,6 +83,7 @@ static int walk_and_match(FT_WORD *word, uint32 count, ALL_IN_ONE *aio)
#error
#error
#endif
#endif
DBUG_ENTER
(
"walk_and_match"
);
DBUG_ENTER
(
"walk_and_match"
);
LINT_INIT
(
subkeys
.
i
);
word
->
weight
=
LWS_FOR_QUERY
;
word
->
weight
=
LWS_FOR_QUERY
;
...
...
storage/xtradb/handler/ha_innodb.cc
View file @
7ca49db5
...
@@ -11632,7 +11632,7 @@ static MYSQL_SYSVAR_BOOL(doublewrite, innobase_use_doublewrite,
...
@@ -11632,7 +11632,7 @@ static MYSQL_SYSVAR_BOOL(doublewrite, innobase_use_doublewrite,
static
MYSQL_SYSVAR_ULONG
(
io_capacity
,
srv_io_capacity
,
static
MYSQL_SYSVAR_ULONG
(
io_capacity
,
srv_io_capacity
,
PLUGIN_VAR_RQCMDARG
,
PLUGIN_VAR_RQCMDARG
,
"Number of IOPs the server can do. Tunes the background IO rate"
,
"Number of IOPs the server can do. Tunes the background IO rate"
,
NULL
,
NULL
,
200
,
100
,
~
0L
,
0
);
NULL
,
NULL
,
200
,
100
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_ULONG
(
fast_shutdown
,
innobase_fast_shutdown
,
static
MYSQL_SYSVAR_ULONG
(
fast_shutdown
,
innobase_fast_shutdown
,
PLUGIN_VAR_OPCMDARG
,
PLUGIN_VAR_OPCMDARG
,
...
@@ -11720,7 +11720,7 @@ static MYSQL_SYSVAR_BOOL(adaptive_flushing, srv_adaptive_flushing,
...
@@ -11720,7 +11720,7 @@ static MYSQL_SYSVAR_BOOL(adaptive_flushing, srv_adaptive_flushing,
static
MYSQL_SYSVAR_ULONG
(
max_purge_lag
,
srv_max_purge_lag
,
static
MYSQL_SYSVAR_ULONG
(
max_purge_lag
,
srv_max_purge_lag
,
PLUGIN_VAR_RQCMDARG
,
PLUGIN_VAR_RQCMDARG
,
"Desired maximum length of the purge queue (0 = no limit)"
,
"Desired maximum length of the purge queue (0 = no limit)"
,
NULL
,
NULL
,
0
,
0
,
~
0L
,
0
);
NULL
,
NULL
,
0
,
0
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_BOOL
(
rollback_on_timeout
,
innobase_rollback_on_timeout
,
static
MYSQL_SYSVAR_BOOL
(
rollback_on_timeout
,
innobase_rollback_on_timeout
,
PLUGIN_VAR_OPCMDARG
|
PLUGIN_VAR_READONLY
,
PLUGIN_VAR_OPCMDARG
|
PLUGIN_VAR_READONLY
,
...
@@ -11807,7 +11807,7 @@ static MYSQL_SYSVAR_ULONG(commit_concurrency, innobase_commit_concurrency,
...
@@ -11807,7 +11807,7 @@ static MYSQL_SYSVAR_ULONG(commit_concurrency, innobase_commit_concurrency,
static
MYSQL_SYSVAR_ULONG
(
concurrency_tickets
,
srv_n_free_tickets_to_enter
,
static
MYSQL_SYSVAR_ULONG
(
concurrency_tickets
,
srv_n_free_tickets_to_enter
,
PLUGIN_VAR_RQCMDARG
,
PLUGIN_VAR_RQCMDARG
,
"Number of times a thread is allowed to enter InnoDB within the same SQL query after it has once got the ticket"
,
"Number of times a thread is allowed to enter InnoDB within the same SQL query after it has once got the ticket"
,
NULL
,
NULL
,
500L
,
1L
,
~
0L
,
0
);
NULL
,
NULL
,
500L
,
1L
,
~
0
U
L
,
0
);
#ifdef EXTENDED_FOR_KILLIDLE
#ifdef EXTENDED_FOR_KILLIDLE
#define kill_idle_help_text "If non-zero value, the idle session with transaction which is idle over the value in seconds is killed by InnoDB."
#define kill_idle_help_text "If non-zero value, the idle session with transaction which is idle over the value in seconds is killed by InnoDB."
...
@@ -11877,12 +11877,12 @@ static MYSQL_SYSVAR_LONG(open_files, innobase_open_files,
...
@@ -11877,12 +11877,12 @@ static MYSQL_SYSVAR_LONG(open_files, innobase_open_files,
static
MYSQL_SYSVAR_ULONG
(
sync_spin_loops
,
srv_n_spin_wait_rounds
,
static
MYSQL_SYSVAR_ULONG
(
sync_spin_loops
,
srv_n_spin_wait_rounds
,
PLUGIN_VAR_RQCMDARG
,
PLUGIN_VAR_RQCMDARG
,
"Count of spin-loop rounds in InnoDB mutexes (30 by default)"
,
"Count of spin-loop rounds in InnoDB mutexes (30 by default)"
,
NULL
,
NULL
,
30L
,
0L
,
~
0L
,
0
);
NULL
,
NULL
,
30L
,
0L
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_ULONG
(
spin_wait_delay
,
srv_spin_wait_delay
,
static
MYSQL_SYSVAR_ULONG
(
spin_wait_delay
,
srv_spin_wait_delay
,
PLUGIN_VAR_OPCMDARG
,
PLUGIN_VAR_OPCMDARG
,
"Maximum delay between polling for a spin lock (6 by default)"
,
"Maximum delay between polling for a spin lock (6 by default)"
,
NULL
,
NULL
,
6L
,
0L
,
~
0L
,
0
);
NULL
,
NULL
,
6L
,
0L
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_BOOL
(
thread_concurrency_timer_based
,
static
MYSQL_SYSVAR_BOOL
(
thread_concurrency_timer_based
,
innobase_thread_concurrency_timer_based
,
innobase_thread_concurrency_timer_based
,
...
@@ -11898,7 +11898,7 @@ static MYSQL_SYSVAR_ULONG(thread_concurrency, srv_thread_concurrency,
...
@@ -11898,7 +11898,7 @@ static MYSQL_SYSVAR_ULONG(thread_concurrency, srv_thread_concurrency,
static
MYSQL_SYSVAR_ULONG
(
thread_sleep_delay
,
srv_thread_sleep_delay
,
static
MYSQL_SYSVAR_ULONG
(
thread_sleep_delay
,
srv_thread_sleep_delay
,
PLUGIN_VAR_RQCMDARG
,
PLUGIN_VAR_RQCMDARG
,
"Time of innodb thread sleeping before joining InnoDB queue (usec). Value 0 disable a sleep"
,
"Time of innodb thread sleeping before joining InnoDB queue (usec). Value 0 disable a sleep"
,
NULL
,
NULL
,
10000L
,
0L
,
~
0L
,
0
);
NULL
,
NULL
,
10000L
,
0L
,
~
0
U
L
,
0
);
static
MYSQL_SYSVAR_STR
(
data_file_path
,
innobase_data_file_path
,
static
MYSQL_SYSVAR_STR
(
data_file_path
,
innobase_data_file_path
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
PLUGIN_VAR_RQCMDARG
|
PLUGIN_VAR_READONLY
,
...
...
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