WL#7436: Deprecate and remove timed_mutexes system variable
This is the 5.5/5.6 version of the patch. Add deprecation warning for timed_mutexes.
This commit is contained in:
parent
63bc784aaa
commit
879fec69fc
@ -712,8 +712,8 @@ The following options may be given as the first argument:
|
||||
one-thread-per-connection, no-threads, loaded-dynamically
|
||||
--thread-stack=# The stack size for each thread
|
||||
--time-format=name The TIME format (ignored)
|
||||
--timed-mutexes Specify whether to time mutexes (only InnoDB mutexes are
|
||||
currently supported)
|
||||
--timed-mutexes Specify whether to time mutexes. Deprecated, has no
|
||||
effect.
|
||||
--tmp-table-size=# If an internal in-memory temporary table exceeds this
|
||||
size, MySQL will automatically convert it to an on-disk
|
||||
MyISAM table
|
||||
|
@ -720,8 +720,8 @@ The following options may be given as the first argument:
|
||||
one-thread-per-connection, no-threads, loaded-dynamically
|
||||
--thread-stack=# The stack size for each thread
|
||||
--time-format=name The TIME format (ignored)
|
||||
--timed-mutexes Specify whether to time mutexes (only InnoDB mutexes are
|
||||
currently supported)
|
||||
--timed-mutexes Specify whether to time mutexes. Deprecated, has no
|
||||
effect.
|
||||
--tmp-table-size=# If an internal in-memory temporary table exceeds this
|
||||
size, MySQL will automatically convert it to an on-disk
|
||||
MyISAM table
|
||||
|
@ -188,6 +188,8 @@ select @@concurrent_insert;
|
||||
@@concurrent_insert
|
||||
AUTO
|
||||
set global timed_mutexes=ON;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
show variables like 'timed_mutexes';
|
||||
Variable_name Value
|
||||
timed_mutexes ON
|
||||
@ -195,6 +197,8 @@ select * from information_schema.session_variables where variable_name like 'tim
|
||||
VARIABLE_NAME VARIABLE_VALUE
|
||||
TIMED_MUTEXES ON
|
||||
set global timed_mutexes=0;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
show variables like 'timed_mutexes';
|
||||
Variable_name Value
|
||||
timed_mutexes OFF
|
||||
|
@ -4,7 +4,11 @@ SELECT @global_start_value;
|
||||
0
|
||||
'#--------------------FN_DYNVARS_177_01------------------------#'
|
||||
SET @@global.timed_mutexes = 1;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SET @@global.timed_mutexes = DEFAULT;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.timed_mutexes;
|
||||
@@global.timed_mutexes
|
||||
0
|
||||
@ -17,15 +21,21 @@ SELECT @@timed_mutexes;
|
||||
SELECT global.timed_mutexes;
|
||||
ERROR 42S02: Unknown table 'global' in field list
|
||||
SET global timed_mutexes = 1;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.timed_mutexes;
|
||||
@@global.timed_mutexes
|
||||
1
|
||||
'#--------------------FN_DYNVARS_177_03------------------------#'
|
||||
SET @@global.timed_mutexes = 0;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.timed_mutexes;
|
||||
@@global.timed_mutexes
|
||||
0
|
||||
SET @@global.timed_mutexes = 1;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.timed_mutexes;
|
||||
@@global.timed_mutexes
|
||||
1
|
||||
@ -82,23 +92,33 @@ VARIABLE_VALUE
|
||||
ON
|
||||
'#---------------------FN_DYNVARS_177_08-------------------------#'
|
||||
SET @@global.timed_mutexes = OFF;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.timed_mutexes;
|
||||
@@global.timed_mutexes
|
||||
0
|
||||
SET @@global.timed_mutexes = ON;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.timed_mutexes;
|
||||
@@global.timed_mutexes
|
||||
1
|
||||
'#---------------------FN_DYNVARS_177_09----------------------#'
|
||||
SET @@global.timed_mutexes = TRUE;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.timed_mutexes;
|
||||
@@global.timed_mutexes
|
||||
1
|
||||
SET @@global.timed_mutexes = FALSE;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.timed_mutexes;
|
||||
@@global.timed_mutexes
|
||||
0
|
||||
SET @@global.timed_mutexes = @global_start_value;
|
||||
Warnings:
|
||||
Warning 1287 '@@timed_mutexes' is deprecated and will be removed in a future release.
|
||||
SELECT @@global.timed_mutexes;
|
||||
@@global.timed_mutexes
|
||||
0
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* Copyright (c) 2002, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
/* Copyright (c) 2002, 2014, Oracle and/or its affiliates. All rights reserved.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
@ -2241,9 +2241,10 @@ static Sys_var_ulonglong Sys_tmp_table_size(
|
||||
|
||||
static Sys_var_mybool Sys_timed_mutexes(
|
||||
"timed_mutexes",
|
||||
"Specify whether to time mutexes (only InnoDB mutexes are currently "
|
||||
"supported)",
|
||||
GLOBAL_VAR(timed_mutexes), CMD_LINE(OPT_ARG), DEFAULT(0));
|
||||
"Specify whether to time mutexes. Deprecated, has no effect.",
|
||||
GLOBAL_VAR(timed_mutexes), CMD_LINE(OPT_ARG), DEFAULT(0),
|
||||
NO_MUTEX_GUARD, NOT_IN_BINLOG, ON_CHECK(NULL), ON_UPDATE(NULL),
|
||||
DEPRECATED(""));
|
||||
|
||||
static char *server_version_ptr;
|
||||
static Sys_var_charptr Sys_version(
|
||||
|
Loading…
x
Reference in New Issue
Block a user