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
a6e74757
Commit
a6e74757
authored
Dec 02, 2011
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
win64 sysvar portability fixes
parent
4079fb3f
Changes
29
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
219 additions
and
153 deletions
+219
-153
include/my_sys.h
include/my_sys.h
+1
-1
mysql-test/suite/optimizer_unfixed_bugs/r/bug45221.result
mysql-test/suite/optimizer_unfixed_bugs/r/bug45221.result
+2
-2
mysql-test/suite/sys_vars/r/deadlock_timeout_long_basic.result
...-test/suite/sys_vars/r/deadlock_timeout_long_basic.result
+2
-1
mysql-test/suite/sys_vars/r/deadlock_timeout_short_basic.result
...test/suite/sys_vars/r/deadlock_timeout_short_basic.result
+2
-1
mysql-test/suite/sys_vars/r/debug_binlog_fsync_sleep_basic.result
...st/suite/sys_vars/r/debug_binlog_fsync_sleep_basic.result
+2
-1
mysql-test/suite/sys_vars/r/delayed_insert_limit_basic_64.result
...est/suite/sys_vars/r/delayed_insert_limit_basic_64.result
+5
-3
mysql-test/suite/sys_vars/r/delayed_queue_size_basic_64.result
...-test/suite/sys_vars/r/delayed_queue_size_basic_64.result
+5
-3
mysql-test/suite/sys_vars/r/key_cache_age_threshold_basic_64.result
.../suite/sys_vars/r/key_cache_age_threshold_basic_64.result
+2
-2
mysql-test/suite/sys_vars/r/log_slow_rate_limit_basic.result
mysql-test/suite/sys_vars/r/log_slow_rate_limit_basic.result
+2
-1
mysql-test/suite/sys_vars/r/log_warnings_basic_64.result
mysql-test/suite/sys_vars/r/log_warnings_basic_64.result
+6
-2
mysql-test/suite/sys_vars/r/max_binlog_cache_size_basic.result
...-test/suite/sys_vars/r/max_binlog_cache_size_basic.result
+3
-3
mysql-test/suite/sys_vars/r/max_binlog_stmt_cache_size_basic.result
.../suite/sys_vars/r/max_binlog_stmt_cache_size_basic.result
+3
-3
mysql-test/suite/sys_vars/r/max_connect_errors_basic_64.result
...-test/suite/sys_vars/r/max_connect_errors_basic_64.result
+9
-5
mysql-test/suite/sys_vars/r/max_seeks_for_key_basic_64.result
...l-test/suite/sys_vars/r/max_seeks_for_key_basic_64.result
+17
-13
mysql-test/suite/sys_vars/r/max_tmp_tables_basic_64.result
mysql-test/suite/sys_vars/r/max_tmp_tables_basic_64.result
+18
-8
mysql-test/suite/sys_vars/r/max_write_lock_count_basic_64.result
...est/suite/sys_vars/r/max_write_lock_count_basic_64.result
+12
-8
mysql-test/suite/sys_vars/r/min_examined_row_limit_basic_64.result
...t/suite/sys_vars/r/min_examined_row_limit_basic_64.result
+12
-6
mysql-test/suite/sys_vars/r/net_retry_count_basic_64.result
mysql-test/suite/sys_vars/r/net_retry_count_basic_64.result
+15
-7
mysql-test/suite/sys_vars/r/progress_report_time_basic.result
...l-test/suite/sys_vars/r/progress_report_time_basic.result
+2
-1
mysql-test/suite/sys_vars/r/query_cache_limit_basic_64.result
...l-test/suite/sys_vars/r/query_cache_limit_basic_64.result
+13
-7
mysql-test/suite/sys_vars/r/query_cache_min_res_unit_basic_64.result
...suite/sys_vars/r/query_cache_min_res_unit_basic_64.result
+8
-4
mysql-test/suite/sys_vars/r/range_alloc_block_size_basic_64.result
...t/suite/sys_vars/r/range_alloc_block_size_basic_64.result
+7
-5
mysql-test/suite/sys_vars/r/slave_transaction_retries_basic_64.result
...uite/sys_vars/r/slave_transaction_retries_basic_64.result
+6
-2
mysql-test/suite/sys_vars/r/transaction_alloc_block_size_basic_64.result
...e/sys_vars/r/transaction_alloc_block_size_basic_64.result
+2
-2
mysys/my_init.c
mysys/my_init.c
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+8
-8
sql/mysqld.h
sql/mysqld.h
+4
-3
sql/sql_class.h
sql/sql_class.h
+4
-4
sql/sys_vars.cc
sql/sys_vars.cc
+46
-46
No files found.
include/my_sys.h
View file @
a6e74757
...
...
@@ -211,7 +211,7 @@ extern void (*error_handler_hook)(uint my_err, const char *str,myf MyFlags);
extern
void
(
*
fatal_error_handler_hook
)(
uint
my_err
,
const
char
*
str
,
myf
MyFlags
);
extern
uint
my_file_limit
;
extern
ulong
my_thread_stack_size
;
extern
ulong
long
my_thread_stack_size
;
extern
const
char
*
(
*
proc_info_hook
)(
MYSQL_THD
,
const
char
*
,
const
char
*
,
const
char
*
,
const
unsigned
int
);
...
...
mysql-test/suite/optimizer_unfixed_bugs/r/bug45221.result
View file @
a6e74757
...
...
@@ -36,11 +36,11 @@ SELECT `int_key`
FROM CC
WHERE `date_nokey` < `datetime_nokey` XOR '2009-11-25' ) ;
pk
9
2
4
5
6
4
9
Warnings:
Warning 1292 Truncated incorrect INTEGER value: '2009-11-25'
Warning 1292 Truncated incorrect INTEGER value: '2009-11-25'
...
...
mysql-test/suite/sys_vars/r/deadlock_timeout_long_basic.result
View file @
a6e74757
...
...
@@ -38,7 +38,8 @@ select @@global.deadlock_timeout_long;
set session deadlock_timeout_long=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect deadlock_timeout_long value: '18446744073709551615'
select @@session.deadlock_timeout_long;
@@session.deadlock_timeout_long
1844674407370955161
5
429496729
5
SET @@global.deadlock_timeout_long = @start_global_value;
mysql-test/suite/sys_vars/r/deadlock_timeout_short_basic.result
View file @
a6e74757
...
...
@@ -38,7 +38,8 @@ select @@global.deadlock_timeout_short;
set session deadlock_timeout_short=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect deadlock_timeout_short value: '18446744073709551615'
select @@session.deadlock_timeout_short;
@@session.deadlock_timeout_short
1844674407370955161
5
429496729
5
SET @@global.deadlock_timeout_short = @start_global_value;
mysql-test/suite/sys_vars/r/debug_binlog_fsync_sleep_basic.result
View file @
a6e74757
...
...
@@ -35,7 +35,8 @@ select @@global.debug_binlog_fsync_sleep;
set global debug_binlog_fsync_sleep=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect debug_binlog_fsync_sleep value: '18446744073709551615'
select @@global.debug_binlog_fsync_sleep;
@@global.debug_binlog_fsync_sleep
1844674407370955161
5
429496729
5
SET @@global.debug_binlog_fsync_sleep = @start_global_value;
mysql-test/suite/sys_vars/r/delayed_insert_limit_basic_64.result
View file @
a6e74757
...
...
@@ -40,19 +40,21 @@ SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
1
SET @@global.delayed_insert_limit = 42949672950;
Warnings:
Warning 1292 Truncated incorrect delayed_insert_limit value: '42949672950'
SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
4294967295
0
4294967295
SET @@global.delayed_insert_limit = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_insert_limit'
SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
4294967295
0
4294967295
SET @@global.delayed_insert_limit = ON;
ERROR 42000: Incorrect argument type to variable 'delayed_insert_limit'
SELECT @@global.delayed_insert_limit;
@@global.delayed_insert_limit
4294967295
0
4294967295
'#-------------------FN_DYNVARS_024_05----------------------------#'
SET @@session.delayed_insert_limit = 0;
ERROR HY000: Variable 'delayed_insert_limit' is a GLOBAL variable and should be set with SET GLOBAL
...
...
mysql-test/suite/sys_vars/r/delayed_queue_size_basic_64.result
View file @
a6e74757
...
...
@@ -40,19 +40,21 @@ SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
1
SET @@global.delayed_queue_size = 42949672950;
Warnings:
Warning 1292 Truncated incorrect delayed_queue_size value: '42949672950'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
4294967295
0
4294967295
SET @@global.delayed_queue_size = 429496729.5;
ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
SELECT @@global.delayed_queue_size;
@@global.delayed_queue_size
4294967295
0
4294967295
SET @@global.delayed_queue_size = ON;
ERROR 42000: Incorrect argument type to variable 'delayed_queue_size'
SELECT @@delayed_queue_size;
@@delayed_queue_size
4294967295
0
4294967295
'#-------------------FN_DYNVARS_026_05----------------------------#'
SET @@session.delayed_queue_size = 0;
ERROR HY000: Variable 'delayed_queue_size' is a GLOBAL variable and should be set with SET GLOBAL
...
...
mysql-test/suite/sys_vars/r/key_cache_age_threshold_basic_64.result
View file @
a6e74757
...
...
@@ -45,12 +45,12 @@ Warnings:
Warning 1292 Truncated incorrect key_cache_age_threshold value: '42949672951'
SELECT @@global.key_cache_age_threshold;
@@global.key_cache_age_threshold
42949672
9
00
4294967200
SET @@global.key_cache_age_threshold = 10000.01;
ERROR 42000: Incorrect argument type to variable 'key_cache_age_threshold'
SELECT @@global.key_cache_age_threshold;
@@global.key_cache_age_threshold
42949672
9
00
4294967200
SET @@global.key_cache_age_threshold = -1024;
Warnings:
Warning 1292 Truncated incorrect key_cache_age_threshold value: '-1024'
...
...
mysql-test/suite/sys_vars/r/log_slow_rate_limit_basic.result
View file @
a6e74757
...
...
@@ -40,7 +40,8 @@ select @@global.log_slow_rate_limit;
set session log_slow_rate_limit=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect log_slow_rate_limit value: '18446744073709551615'
select @@session.log_slow_rate_limit;
@@session.log_slow_rate_limit
1844674407370955161
5
429496729
5
SET @@global.log_slow_rate_limit = @start_global_value;
mysql-test/suite/sys_vars/r/log_warnings_basic_64.result
View file @
a6e74757
...
...
@@ -70,9 +70,11 @@ SELECT @@session.log_warnings;
65550
'#------------------FN_DYNVARS_067_05-----------------------#'
SET @@global.log_warnings = 100000000000;
Warnings:
Warning 1292 Truncated incorrect log_warnings value: '100000000000'
SELECT @@global.log_warnings;
@@global.log_warnings
100000000000
4294967295
SET @@global.log_warnings = -1024;
Warnings:
Warning 1292 Truncated incorrect log_warnings value: '-1024'
...
...
@@ -90,9 +92,11 @@ SELECT @@global.log_warnings;
@@global.log_warnings
0
SET @@session.log_warnings = 100000000000;
Warnings:
Warning 1292 Truncated incorrect log_warnings value: '100000000000'
SELECT @@session.log_warnings;
@@session.log_warnings
100000000000
4294967295
SET @@session.log_warnings = -2;
Warnings:
Warning 1292 Truncated incorrect log_warnings value: '-2'
...
...
mysql-test/suite/sys_vars/r/max_binlog_cache_size_basic.result
View file @
a6e74757
SET @start_value = @@global.max_binlog_cache_size;
SELECT @start_value;
@start_value
1844674407370954752
0
429496320
0
'#--------------------FN_DYNVARS_072_01------------------------#'
SET @@global.max_binlog_cache_size = 5000;
Warnings:
...
...
@@ -9,7 +9,7 @@ Warning 1292 Truncated incorrect max_binlog_cache_size value: '5000'
SET @@global.max_binlog_cache_size = DEFAULT;
SELECT @@global.max_binlog_cache_size;
@@global.max_binlog_cache_size
1844674407370954752
0
429496320
0
'#---------------------FN_DYNVARS_072_02-------------------------#'
SET @@global.max_binlog_cache_size = @start_value;
SELECT @@global.max_binlog_cache_size = 4294967295;
...
...
@@ -149,4 +149,4 @@ ERROR 42S22: Unknown column 'max_binlog_cache_size' in 'field list'
SET @@global.max_binlog_cache_size = @start_value;
SELECT @@global.max_binlog_cache_size;
@@global.max_binlog_cache_size
1844674407370954752
0
429496320
0
mysql-test/suite/sys_vars/r/max_binlog_stmt_cache_size_basic.result
View file @
a6e74757
SET @start_value = @@global.max_binlog_stmt_cache_size;
SELECT @start_value;
@start_value
1844674407370954752
0
429496320
0
'#--------------------FN_DYNVARS_072_01------------------------#'
SET @@global.max_binlog_stmt_cache_size = 5000;
Warnings:
...
...
@@ -9,7 +9,7 @@ Warning 1292 Truncated incorrect max_binlog_stmt_cache_size value: '5000'
SET @@global.max_binlog_stmt_cache_size = DEFAULT;
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
1844674407370954752
0
429496320
0
'#---------------------FN_DYNVARS_072_02-------------------------#'
SET @@global.max_binlog_stmt_cache_size = @start_value;
SELECT @@global.max_binlog_stmt_cache_size = 4294967295;
...
...
@@ -149,4 +149,4 @@ ERROR 42S22: Unknown column 'max_binlog_stmt_cache_size' in 'field list'
SET @@global.max_binlog_stmt_cache_size = @start_value;
SELECT @@global.max_binlog_stmt_cache_size;
@@global.max_binlog_stmt_cache_size
1844674407370954752
0
429496320
0
mysql-test/suite/sys_vars/r/max_connect_errors_basic_64.result
View file @
a6e74757
...
...
@@ -42,14 +42,16 @@ SELECT @@global.max_connect_errors;
@@global.max_connect_errors
1
SET @@global.max_connect_errors = 100000000000;
Warnings:
Warning 1292 Truncated incorrect max_connect_errors value: '100000000000'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
100000000000
4294967295
SET @@global.max_connect_errors = 10000.01;
ERROR 42000: Incorrect argument type to variable 'max_connect_errors'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
100000000000
4294967295
SET @@global.max_connect_errors = -1024;
Warnings:
Warning 1292 Truncated incorrect max_connect_errors value: '-1024'
...
...
@@ -63,19 +65,21 @@ SELECT @@global.max_connect_errors;
@@global.max_connect_errors
1
SET @@global.max_connect_errors = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_connect_errors value: '4294967296'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
429496729
6
429496729
5
SET @@global.max_connect_errors = ON;
ERROR 42000: Incorrect argument type to variable 'max_connect_errors'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
429496729
6
429496729
5
SET @@global.max_connect_errors = 'test';
ERROR 42000: Incorrect argument type to variable 'max_connect_errors'
SELECT @@global.max_connect_errors;
@@global.max_connect_errors
429496729
6
429496729
5
'#-------------------FN_DYNVARS_073_05----------------------------#'
SET @@session.max_connect_errors = 4096;
ERROR HY000: Variable 'max_connect_errors' is a GLOBAL variable and should be set with SET GLOBAL
...
...
mysql-test/suite/sys_vars/r/max_seeks_for_key_basic_64.result
View file @
a6e74757
SET @start_global_value = @@global.max_seeks_for_key;
SELECT @start_global_value;
@start_global_value
1844674407370955161
5
429496729
5
SET @start_session_value = @@session.max_seeks_for_key;
SELECT @start_session_value;
@start_session_value
1844674407370955161
5
429496729
5
'#--------------------FN_DYNVARS_083_01-------------------------#'
SET @@global.max_seeks_for_key = 100;
SET @@global.max_seeks_for_key = DEFAULT;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
1844674407370955161
5
429496729
5
SET @@session.max_seeks_for_key = 200;
SET @@session.max_seeks_for_key = DEFAULT;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
1844674407370955161
5
429496729
5
'#--------------------FN_DYNVARS_083_02-------------------------#'
SET @@global.max_seeks_for_key = DEFAULT;
SELECT @@global.max_seeks_for_key = 4294967295;
@@global.max_seeks_for_key = 4294967295
0
1
SET @@session.max_seeks_for_key = DEFAULT;
SELECT @@session.max_seeks_for_key = 4294967295;
@@session.max_seeks_for_key = 4294967295
0
1
'#--------------------FN_DYNVARS_083_03-------------------------#'
SET @@global.max_seeks_for_key = 1;
SELECT @@global.max_seeks_for_key;
...
...
@@ -82,19 +82,21 @@ SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
1
SET @@global.max_seeks_for_key = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_seeks_for_key value: '4294967296'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
429496729
6
429496729
5
SET @@global.max_seeks_for_key = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
429496729
6
429496729
5
SET @@global.max_seeks_for_key = test;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
429496729
6
429496729
5
SET @@session.max_seeks_for_key = 0;
Warnings:
Warning 1292 Truncated incorrect max_seeks_for_key value: '0'
...
...
@@ -110,14 +112,16 @@ SELECT @@session.max_seeks_for_key;
SET @@session.max_seeks_for_key = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SET @@session.max_seeks_for_key = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_seeks_for_key value: '4294967296'
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
429496729
6
429496729
5
SET @@session.max_seeks_for_key = test;
ERROR 42000: Incorrect argument type to variable 'max_seeks_for_key'
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
429496729
6
429496729
5
'#------------------FN_DYNVARS_083_06-----------------------#'
SELECT @@global.max_seeks_for_key = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...
...
@@ -168,8 +172,8 @@ ERROR 42S22: Unknown column 'max_seeks_for_key' in 'field list'
SET @@global.max_seeks_for_key = @start_global_value;
SELECT @@global.max_seeks_for_key;
@@global.max_seeks_for_key
1844674407370955161
5
429496729
5
SET @@session.max_seeks_for_key = @start_session_value;
SELECT @@session.max_seeks_for_key;
@@session.max_seeks_for_key
1844674407370955161
5
429496729
5
mysql-test/suite/sys_vars/r/max_tmp_tables_basic_64.result
View file @
a6e74757
...
...
@@ -76,9 +76,11 @@ SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
1
SET @@global.max_tmp_tables = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '4294967296'
SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
429496729
6
429496729
5
SET @@global.max_tmp_tables = -1;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '-1'
...
...
@@ -86,23 +88,27 @@ SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
1
SET @@global.max_tmp_tables = 429496729500;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '429496729500'
SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
4294967295
00
4294967295
SET @@global.max_tmp_tables = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_tmp_tables'
SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
4294967295
00
4294967295
SET @@global.max_tmp_tables = test;
ERROR 42000: Incorrect argument type to variable 'max_tmp_tables'
SELECT @@global.max_tmp_tables;
@@global.max_tmp_tables
4294967295
00
4294967295
SET @@session.max_tmp_tables = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '4294967296'
SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
429496729
6
429496729
5
SET @@session.max_tmp_tables = -1;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '-1'
...
...
@@ -110,9 +116,11 @@ SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
1
SET @@session.max_tmp_tables = 429496729500;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '429496729500'
SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
4294967295
00
4294967295
SET @@session.max_tmp_tables = -001;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '-1'
...
...
@@ -122,14 +130,16 @@ SELECT @@session.max_tmp_tables;
SET @@session.max_tmp_tables = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_tmp_tables'
SET @@session.max_tmp_tables = 10737418241;
Warnings:
Warning 1292 Truncated incorrect max_tmp_tables value: '10737418241'
SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
10737418241
4294967295
SET @@session.max_tmp_tables = test;
ERROR 42000: Incorrect argument type to variable 'max_tmp_tables'
SELECT @@session.max_tmp_tables;
@@session.max_tmp_tables
10737418241
4294967295
'#------------------FN_DYNVARS_086_06-----------------------#'
SELECT @@global.max_tmp_tables = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...
...
mysql-test/suite/sys_vars/r/max_write_lock_count_basic_64.result
View file @
a6e74757
SET @start_global_value = @@global.max_write_lock_count;
SELECT @start_global_value;
@start_global_value
1844674407370955161
5
429496729
5
'#--------------------FN_DYNVARS_088_01-------------------------#'
SET @@global.max_write_lock_count = 1000;
SET @@global.max_write_lock_count = DEFAULT;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1844674407370955161
5
429496729
5
'#--------------------FN_DYNVARS_088_02-------------------------#'
SET @@global.max_write_lock_count = DEFAULT;
SELECT @@global.max_write_lock_count = 4294967295;
@@global.max_write_lock_count = 4294967295
0
1
'#--------------------FN_DYNVARS_088_03-------------------------#'
SET @@global.max_write_lock_count = 1;
SELECT @@global.max_write_lock_count;
...
...
@@ -42,9 +42,11 @@ SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1
SET @@global.max_write_lock_count = 4294967296;
Warnings:
Warning 1292 Truncated incorrect max_write_lock_count value: '4294967296'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
429496729
6
429496729
5
SET @@global.max_write_lock_count = -1;
Warnings:
Warning 1292 Truncated incorrect max_write_lock_count value: '-1'
...
...
@@ -52,19 +54,21 @@ SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1
SET @@global.max_write_lock_count = 429496729500;
Warnings:
Warning 1292 Truncated incorrect max_write_lock_count value: '429496729500'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
4294967295
00
4294967295
SET @@global.max_write_lock_count = 65530.34;
ERROR 42000: Incorrect argument type to variable 'max_write_lock_count'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
4294967295
00
4294967295
SET @@global.max_write_lock_count = test;
ERROR 42000: Incorrect argument type to variable 'max_write_lock_count'
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
4294967295
00
4294967295
'#------------------FN_DYNVARS_088_05-----------------------#'
SELECT @@global.max_write_lock_count = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...
...
@@ -101,4 +105,4 @@ ERROR 42S22: Unknown column 'max_write_lock_count' in 'field list'
SET @@global.max_write_lock_count = @start_global_value;
SELECT @@global.max_write_lock_count;
@@global.max_write_lock_count
1844674407370955161
5
429496729
5
mysql-test/suite/sys_vars/r/min_examined_row_limit_basic_64.result
View file @
a6e74757
...
...
@@ -88,23 +88,27 @@ SELECT @@global.min_examined_row_limit;
@@global.min_examined_row_limit
0
SET @@global.min_examined_row_limit = 429496729500;
Warnings:
Warning 1292 Truncated incorrect min_examined_row_limit value: '429496729500'
SELECT @@global.min_examined_row_limit;
@@global.min_examined_row_limit
4294967295
00
4294967295
SET @@global.min_examined_row_limit = 65530.34;
ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit'
SELECT @@global.min_examined_row_limit;
@@global.min_examined_row_limit
4294967295
00
4294967295
SET @@global.min_examined_row_limit = test;
ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit'
SELECT @@global.min_examined_row_limit;
@@global.min_examined_row_limit
4294967295
00
4294967295
SET @@session.min_examined_row_limit = 4294967296;
Warnings:
Warning 1292 Truncated incorrect min_examined_row_limit value: '4294967296'
SELECT @@session.min_examined_row_limit;
@@session.min_examined_row_limit
429496729
6
429496729
5
SET @@session.min_examined_row_limit = -1;
Warnings:
Warning 1292 Truncated incorrect min_examined_row_limit value: '-1'
...
...
@@ -114,14 +118,16 @@ SELECT @@session.min_examined_row_limit;
SET @@session.min_examined_row_limit = 65530.34;
ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit'
SET @@session.min_examined_row_limit = 4294967295021;
Warnings:
Warning 1292 Truncated incorrect min_examined_row_limit value: '4294967295021'
SELECT @@session.min_examined_row_limit;
@@session.min_examined_row_limit
4294967295
021
4294967295
SET @@session.min_examined_row_limit = test;
ERROR 42000: Incorrect argument type to variable 'min_examined_row_limit'
SELECT @@session.min_examined_row_limit;
@@session.min_examined_row_limit
4294967295
021
4294967295
'#------------------FN_DYNVARS_089_06-----------------------#'
SELECT @@global.min_examined_row_limit = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...
...
mysql-test/suite/sys_vars/r/net_retry_count_basic_64.result
View file @
a6e74757
...
...
@@ -82,23 +82,27 @@ SELECT @@global.net_retry_count;
@@global.net_retry_count
1
SET @@global.net_retry_count = 4294967296;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '4294967296'
SELECT @@global.net_retry_count;
@@global.net_retry_count
429496729
6
429496729
5
SET @@global.net_retry_count = 429496729500;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '429496729500'
SELECT @@global.net_retry_count;
@@global.net_retry_count
4294967295
00
4294967295
SET @@global.net_retry_count = 65530.34;
ERROR 42000: Incorrect argument type to variable 'net_retry_count'
SELECT @@global.net_retry_count;
@@global.net_retry_count
4294967295
00
4294967295
SET @@global.net_retry_count = test;
ERROR 42000: Incorrect argument type to variable 'net_retry_count'
SELECT @@global.net_retry_count;
@@global.net_retry_count
4294967295
00
4294967295
SET @@session.net_retry_count = 0;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '0'
...
...
@@ -114,18 +118,22 @@ SELECT @@session.net_retry_count;
SET @@session.net_retry_count = 65530.34;
ERROR 42000: Incorrect argument type to variable 'net_retry_count'
SET @@session.net_retry_count = 6555015425;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '6555015425'
SELECT @@session.net_retry_count;
@@session.net_retry_count
655501542
5
429496729
5
SET @@session.net_retry_count = 4294967296;
Warnings:
Warning 1292 Truncated incorrect net_retry_count value: '4294967296'
SELECT @@session.net_retry_count;
@@session.net_retry_count
429496729
6
429496729
5
SET @@session.net_retry_count = test;
ERROR 42000: Incorrect argument type to variable 'net_retry_count'
SELECT @@session.net_retry_count;
@@session.net_retry_count
429496729
6
429496729
5
'#------------------FN_DYNVARS_111_06-----------------------#'
SELECT @@global.net_retry_count = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...
...
mysql-test/suite/sys_vars/r/progress_report_time_basic.result
View file @
a6e74757
...
...
@@ -38,7 +38,8 @@ select @@global.progress_report_time;
set session progress_report_time=cast(-1 as unsigned int);
Warnings:
Warning 1105 Cast to unsigned converted negative integer to it's positive complement
Warning 1292 Truncated incorrect progress_report_time value: '18446744073709551615'
select @@session.progress_report_time;
@@session.progress_report_time
1844674407370955161
5
429496729
5
SET @@global.progress_report_time = @start_global_value;
mysql-test/suite/sys_vars/r/query_cache_limit_basic_64.result
View file @
a6e74757
...
...
@@ -38,18 +38,22 @@ SELECT @@global.query_cache_limit;
@@global.query_cache_limit
0
SET @@global.query_cache_limit = 4294967296;
Warnings:
Warning 1292 Truncated incorrect query_cache_limit value: '4294967296'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
429496729
6
429496729
5
SET @@global.query_cache_limit = 10240022115;
Warnings:
Warning 1292 Truncated incorrect query_cache_limit value: '10240022115'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
1024002211
5
429496729
5
SET @@global.query_cache_limit = 10000.01;
ERROR 42000: Incorrect argument type to variable 'query_cache_limit'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
1024002211
5
429496729
5
SET @@global.query_cache_limit = -1024;
Warnings:
Warning 1292 Truncated incorrect query_cache_limit value: '-1024'
...
...
@@ -57,25 +61,27 @@ SELECT @@global.query_cache_limit;
@@global.query_cache_limit
0
SET @@global.query_cache_limit = 42949672950;
Warnings:
Warning 1292 Truncated incorrect query_cache_limit value: '42949672950'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
4294967295
0
4294967295
SET @@global.query_cache_limit = ON;
ERROR 42000: Incorrect argument type to variable 'query_cache_limit'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
4294967295
0
4294967295
SET @@global.query_cache_limit = 'test';
ERROR 42000: Incorrect argument type to variable 'query_cache_limit'
SELECT @@global.query_cache_limit;
@@global.query_cache_limit
4294967295
0
4294967295
'#-------------------FN_DYNVARS_131_05----------------------------#'
SET @@session.query_cache_limit = 0;
ERROR HY000: Variable 'query_cache_limit' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@query_cache_limit;
@@query_cache_limit
4294967295
0
4294967295
'#----------------------FN_DYNVARS_131_06------------------------#'
SELECT @@global.query_cache_limit = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...
...
mysql-test/suite/sys_vars/r/query_cache_min_res_unit_basic_64.result
View file @
a6e74757
...
...
@@ -46,6 +46,8 @@ SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
512
SET @@global.query_cache_min_res_unit = 4294967296;
Warnings:
Warning 1292 Truncated incorrect query_cache_min_res_unit value: '4294967296'
SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
4294967296
...
...
@@ -65,25 +67,27 @@ SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
512
SET @@global.query_cache_min_res_unit = 42949672950;
Warnings:
Warning 1292 Truncated incorrect query_cache_min_res_unit value: '42949672950'
SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
429496729
52
429496729
6
SET @@global.query_cache_min_res_unit = ON;
ERROR 42000: Incorrect argument type to variable 'query_cache_min_res_unit'
SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
429496729
52
429496729
6
SET @@global.query_cache_min_res_unit = 'test';
ERROR 42000: Incorrect argument type to variable 'query_cache_min_res_unit'
SELECT @@global.query_cache_min_res_unit;
@@global.query_cache_min_res_unit
429496729
52
429496729
6
'#-------------------FN_DYNVARS_132_05----------------------------#'
SET @@session.query_cache_min_res_unit = 0;
ERROR HY000: Variable 'query_cache_min_res_unit' is a GLOBAL variable and should be set with SET GLOBAL
SELECT @@query_cache_min_res_unit;
@@query_cache_min_res_unit
429496729
52
429496729
6
'#----------------------FN_DYNVARS_132_06------------------------#'
SELECT @@global.query_cache_min_res_unit = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...
...
mysql-test/suite/sys_vars/r/range_alloc_block_size_basic_64.result
View file @
a6e74757
...
...
@@ -86,17 +86,17 @@ Warnings:
Warning 1292 Truncated incorrect range_alloc_block_size value: '42949672951'
SELECT @@global.range_alloc_block_size;
@@global.range_alloc_block_size
429496
71936
429496
6272
SET @@global.range_alloc_block_size = 65530.34;
ERROR 42000: Incorrect argument type to variable 'range_alloc_block_size'
SELECT @@global.range_alloc_block_size;
@@global.range_alloc_block_size
429496
71936
429496
6272
SET @@global.range_alloc_block_size = test;
ERROR 42000: Incorrect argument type to variable 'range_alloc_block_size'
SELECT @@global.range_alloc_block_size;
@@global.range_alloc_block_size
429496
71936
429496
6272
SET @@session.range_alloc_block_size = 0;
Warnings:
Warning 1292 Truncated incorrect range_alloc_block_size value: '0'
...
...
@@ -112,14 +112,16 @@ SELECT @@session.range_alloc_block_size;
SET @@session.range_alloc_block_size = 65530.34;
ERROR 42000: Incorrect argument type to variable 'range_alloc_block_size'
SET @@session.range_alloc_block_size = 4294967296;
Warnings:
Warning 1292 Truncated incorrect range_alloc_block_size value: '4294967296'
SELECT @@session.range_alloc_block_size;
@@session.range_alloc_block_size
429496
7296
429496
6272
SET @@session.range_alloc_block_size = test;
ERROR 42000: Incorrect argument type to variable 'range_alloc_block_size'
SELECT @@session.range_alloc_block_size;
@@session.range_alloc_block_size
429496
7296
429496
6272
'#------------------FN_DYNVARS_137_06-----------------------#'
SELECT @@global.range_alloc_block_size = VARIABLE_VALUE
FROM INFORMATION_SCHEMA.GLOBAL_VARIABLES
...
...
mysql-test/suite/sys_vars/r/slave_transaction_retries_basic_64.result
View file @
a6e74757
...
...
@@ -39,9 +39,11 @@ SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
4294967295
SET @@global.slave_transaction_retries = 2147483649*2;
Warnings:
Warning 1292 Truncated incorrect slave_transaction_retries value: '4294967298'
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
429496729
8
429496729
5
SET @@global.slave_transaction_retries = 4294967295;
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
...
...
@@ -61,9 +63,11 @@ SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
0
SET @@global.slave_transaction_retries = 2147483649*2147483649;
Warnings:
Warning 1292 Truncated incorrect slave_transaction_retries value: '4611686022722355201'
SELECT @@global.slave_transaction_retries;
@@global.slave_transaction_retries
4
611686022722355201
4
294967295
SET @@global.slave_transaction_retries = 65530.34;
ERROR 42000: Incorrect argument type to variable 'slave_transaction_retries'
SET @@global.slave_transaction_retries = '100';
...
...
mysql-test/suite/sys_vars/r/transaction_alloc_block_size_basic_64.result
View file @
a6e74757
...
...
@@ -82,7 +82,7 @@ Warnings:
Warning 1292 Truncated incorrect transaction_alloc_block_size value: '123456789201'
SELECT @@global.transaction_alloc_block_size;
@@global.transaction_alloc_block_size
123456788480
4294966272
SET @@global.transaction_alloc_block_size = ON;
ERROR 42000: Incorrect argument type to variable 'transaction_alloc_block_size'
SET @@global.transaction_alloc_block_size = OFF;
...
...
@@ -114,7 +114,7 @@ Warnings:
Warning 1292 Truncated incorrect transaction_alloc_block_size value: '12345678901'
SELECT @@session.transaction_alloc_block_size;
@@session.transaction_alloc_block_size
12345678848
4294966272
SET @@session.transaction_alloc_block_size = ON;
ERROR 42000: Incorrect argument type to variable 'transaction_alloc_block_size'
SET @@session.transaction_alloc_block_size = OFF;
...
...
mysys/my_init.c
View file @
a6e74757
...
...
@@ -39,7 +39,7 @@ static my_bool win32_init_tcp_ip();
my_bool
my_init_done
=
0
;
uint
mysys_usage_id
=
0
;
/* Incremented for each my_init() */
ulong
my_thread_stack_size
=
(
sizeof
(
void
*
)
<=
4
)
?
65536
:
((
256
-
16
)
*
1024
);
ulong
long
my_thread_stack_size
=
(
sizeof
(
void
*
)
<=
4
)
?
65536
:
((
256
-
16
)
*
1024
);
static
ulong
atoi_octal
(
const
char
*
str
)
{
...
...
sql/mysqld.cc
View file @
a6e74757
...
...
@@ -473,11 +473,11 @@ uint slave_net_timeout;
ulong
slave_exec_mode_options
;
ulonglong
slave_type_conversions_options
;
ulong
thread_cache_size
=
0
;
ulong
binlog_cache_size
=
0
;
ulong
max_binlog_cache_size
=
0
;
ulong
binlog_stmt_cache_size
=
0
;
ulong
max_binlog_stmt_cache_size
=
0
;
ulong
query_cache_size
=
0
;
ulong
long
binlog_cache_size
=
0
;
ulong
long
max_binlog_cache_size
=
0
;
ulong
long
binlog_stmt_cache_size
=
0
;
ulong
long
max_binlog_stmt_cache_size
=
0
;
ulong
long
query_cache_size
=
0
;
ulong
refresh_version
;
/* Increments on each reload */
query_id_t
global_query_id
;
my_atomic_rwlock_t
global_query_id_lock
;
...
...
@@ -2800,7 +2800,7 @@ and this may fail.\n\n");
fprintf
(
stderr
,
"thread_count=%u
\n
"
,
thread_count
);
fprintf
(
stderr
,
"It is possible that mysqld could use up to
\n
\
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = %lu K
\n
\
bytes of memory
\n
"
,
(
(
ulong
)
dflt_key_cache
->
key_cache_mem_size
+
bytes of memory
\n
"
,
(
ulong
)
(
dflt_key_cache
->
key_cache_mem_size
+
(
global_system_variables
.
read_buff_size
+
global_system_variables
.
sortbuff_size
)
*
(
thread_scheduler
->
max_threads
+
extra_max_connections
)
+
...
...
@@ -4885,8 +4885,8 @@ int mysqld_main(int argc, char **argv)
if
(
stack_size
&&
stack_size
<
my_thread_stack_size
)
{
if
(
global_system_variables
.
log_warnings
)
sql_print_warning
(
"Asked for %l
u thread stack, but got %ld
"
,
my_thread_stack_size
,
(
long
)
stack_size
);
sql_print_warning
(
"Asked for %l
lu thread stack, but got %zu
"
,
my_thread_stack_size
,
stack_size
);
#if defined(__ia64__) || defined(__ia64)
my_thread_stack_size
=
stack_size
*
2
;
#else
...
...
sql/mysqld.h
View file @
a6e74757
...
...
@@ -151,7 +151,8 @@ extern ulong delayed_insert_limit, delayed_queue_size;
extern
ulong
delayed_insert_threads
,
delayed_insert_writes
;
extern
ulong
delayed_rows_in_use
,
delayed_insert_errors
;
extern
ulong
slave_open_temp_tables
;
extern
ulong
query_cache_size
,
query_cache_min_res_unit
;
extern
ulonglong
query_cache_size
;
extern
ulong
query_cache_min_res_unit
;
extern
ulong
slow_launch_threads
,
slow_launch_time
;
extern
ulong
table_cache_size
,
table_def_size
;
extern
MYSQL_PLUGIN_IMPORT
ulong
max_connections
;
...
...
@@ -165,8 +166,8 @@ extern int max_user_connections;
extern
ulong
what_to_log
,
flush_time
;
extern
ulong
max_prepared_stmt_count
,
prepared_stmt_count
;
extern
ulong
open_files_limit
;
extern
ulong
binlog_cache_size
,
binlog_stmt_cache_size
;
extern
ulong
max_binlog_cache_size
,
max_binlog_stmt_cache_size
;
extern
ulong
long
binlog_cache_size
,
binlog_stmt_cache_size
;
extern
ulong
long
max_binlog_cache_size
,
max_binlog_stmt_cache_size
;
extern
ulong
max_binlog_size
,
max_relay_log_size
;
extern
ulong
opt_binlog_rows_event_max_size
;
extern
ulong
rpl_recovery_rank
,
thread_cache_size
;
...
...
sql/sql_class.h
View file @
a6e74757
...
...
@@ -467,11 +467,13 @@ typedef struct system_variables
ulonglong
join_buff_space_limit
;
ulonglong
log_slow_filter
;
ulonglong
log_slow_verbosity
;
ulonglong
bulk_insert_buff_size
;
ulonglong
join_buff_size
;
ulonglong
sortbuff_size
;
ulonglong
group_concat_max_len
;
ha_rows
select_limit
;
ha_rows
max_join_size
;
ulong
auto_increment_increment
,
auto_increment_offset
;
ulong
bulk_insert_buff_size
;
ulong
join_buff_size
;
ulong
lock_wait_timeout
;
ulong
join_cache_level
;
ulong
max_allowed_packet
;
...
...
@@ -496,7 +498,6 @@ typedef struct system_variables
ulong
read_rnd_buff_size
;
ulong
mrr_buff_size
;
ulong
div_precincrement
;
ulong
sortbuff_size
;
/* Total size of all buffers used by the subselect_rowid_merge_engine. */
ulong
rowid_merge_buff_size
;
ulong
max_sp_recursion_depth
;
...
...
@@ -508,7 +509,6 @@ typedef struct system_variables
ulong
trans_alloc_block_size
;
ulong
trans_prealloc_size
;
ulong
log_warnings
;
ulong
group_concat_max_len
;
/* Flags for slow log filtering */
ulong
log_slow_rate_limit
;
ulong
binlog_format
;
///< binlog format for this thd (see enum_binlog_format)
...
...
sql/sys_vars.cc
View file @
a6e74757
This diff is collapsed.
Click to expand it.
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