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
beb2422a
Commit
beb2422a
authored
Sep 03, 2014
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup: @@mutex_deadlock_detector -> @@debug_mutex_deadlock_detector
parent
15623fd7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
36 deletions
+33
-36
mysql-test/include/have_mutex_deadlock_detector.inc
mysql-test/include/have_mutex_deadlock_detector.inc
+3
-4
mysql-test/r/have_mutex_deadlock_detector.require
mysql-test/r/have_mutex_deadlock_detector.require
+0
-2
mysql-test/suite/sys_vars/r/debug_mutex_deadlock_detector_basic.result
...ite/sys_vars/r/debug_mutex_deadlock_detector_basic.result
+21
-0
mysql-test/suite/sys_vars/r/mutex_deadlock_detector_basic.result
...est/suite/sys_vars/r/mutex_deadlock_detector_basic.result
+0
-21
mysql-test/suite/sys_vars/t/debug_mutex_deadlock_detector_basic.test
...suite/sys_vars/t/debug_mutex_deadlock_detector_basic.test
+8
-8
sql/sys_vars.cc
sql/sys_vars.cc
+1
-1
No files found.
mysql-test/include/have_mutex_deadlock_detector.inc
View file @
beb2422a
--
require
r
/
have_mutex_deadlock_detector
.
require
if
(
`select count(*)=0 from information_schema.global_variables where variable_name = "debug_mutex_deadlock_detector"`
)
{
disable_query_log
;
skip
needs
safemutex
deadlock
detector
;
select
1
from
information_schema
.
global_variables
where
variable_name
=
"mutex_deadlock_detector"
;
}
enable_query_log
;
mysql-test/r/have_mutex_deadlock_detector.require
deleted
100644 → 0
View file @
15623fd7
1
1
mysql-test/suite/sys_vars/r/debug_mutex_deadlock_detector_basic.result
0 → 100644
View file @
beb2422a
select @@global.debug_mutex_deadlock_detector;
@@global.debug_mutex_deadlock_detector
1
select @@session.debug_mutex_deadlock_detector;
ERROR HY000: Variable 'debug_mutex_deadlock_detector' is a GLOBAL variable
show global variables like 'debug_mutex_deadlock_detector';
Variable_name Value
debug_mutex_deadlock_detector ON
show session variables like 'debug_mutex_deadlock_detector';
Variable_name Value
debug_mutex_deadlock_detector ON
select * from information_schema.global_variables where variable_name='debug_mutex_deadlock_detector';
VARIABLE_NAME VARIABLE_VALUE
DEBUG_MUTEX_DEADLOCK_DETECTOR ON
select * from information_schema.session_variables where variable_name='debug_mutex_deadlock_detector';
VARIABLE_NAME VARIABLE_VALUE
DEBUG_MUTEX_DEADLOCK_DETECTOR ON
set global debug_mutex_deadlock_detector=1;
ERROR HY000: Variable 'debug_mutex_deadlock_detector' is a read only variable
set session debug_mutex_deadlock_detector=1;
ERROR HY000: Variable 'debug_mutex_deadlock_detector' is a read only variable
mysql-test/suite/sys_vars/r/mutex_deadlock_detector_basic.result
deleted
100644 → 0
View file @
15623fd7
select @@global.mutex_deadlock_detector;
@@global.mutex_deadlock_detector
1
select @@session.mutex_deadlock_detector;
ERROR HY000: Variable 'mutex_deadlock_detector' is a GLOBAL variable
show global variables like 'mutex_deadlock_detector';
Variable_name Value
mutex_deadlock_detector ON
show session variables like 'mutex_deadlock_detector';
Variable_name Value
mutex_deadlock_detector ON
select * from information_schema.global_variables where variable_name='mutex_deadlock_detector';
VARIABLE_NAME VARIABLE_VALUE
MUTEX_DEADLOCK_DETECTOR ON
select * from information_schema.session_variables where variable_name='mutex_deadlock_detector';
VARIABLE_NAME VARIABLE_VALUE
MUTEX_DEADLOCK_DETECTOR ON
set global mutex_deadlock_detector=1;
ERROR HY000: Variable 'mutex_deadlock_detector' is a read only variable
set session mutex_deadlock_detector=1;
ERROR HY000: Variable 'mutex_deadlock_detector' is a read only variable
mysql-test/suite/sys_vars/t/mutex_deadlock_detector_basic.test
→
mysql-test/suite/sys_vars/t/
debug_
mutex_deadlock_detector_basic.test
View file @
beb2422a
...
@@ -5,19 +5,19 @@
...
@@ -5,19 +5,19 @@
#
#
# show the global and session values;
# show the global and session values;
#
#
select
@@
global
.
mutex_deadlock_detector
;
select
@@
global
.
debug_
mutex_deadlock_detector
;
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
select
@@
session
.
mutex_deadlock_detector
;
select
@@
session
.
debug_
mutex_deadlock_detector
;
show
global
variables
like
'mutex_deadlock_detector'
;
show
global
variables
like
'
debug_
mutex_deadlock_detector'
;
show
session
variables
like
'mutex_deadlock_detector'
;
show
session
variables
like
'
debug_
mutex_deadlock_detector'
;
select
*
from
information_schema
.
global_variables
where
variable_name
=
'mutex_deadlock_detector'
;
select
*
from
information_schema
.
global_variables
where
variable_name
=
'
debug_
mutex_deadlock_detector'
;
select
*
from
information_schema
.
session_variables
where
variable_name
=
'mutex_deadlock_detector'
;
select
*
from
information_schema
.
session_variables
where
variable_name
=
'
debug_
mutex_deadlock_detector'
;
#
#
# show that it's read-only
# show that it's read-only
#
#
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
set
global
mutex_deadlock_detector
=
1
;
set
global
debug_
mutex_deadlock_detector
=
1
;
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
--
error
ER_INCORRECT_GLOBAL_LOCAL_VAR
set
session
mutex_deadlock_detector
=
1
;
set
session
debug_
mutex_deadlock_detector
=
1
;
sql/sys_vars.cc
View file @
beb2422a
...
@@ -4810,7 +4810,7 @@ static Sys_var_ulong Sys_extra_max_connections(
...
@@ -4810,7 +4810,7 @@ static Sys_var_ulong Sys_extra_max_connections(
#ifdef SAFE_MUTEX
#ifdef SAFE_MUTEX
static
Sys_var_mybool
Sys_mutex_deadlock_detector
(
static
Sys_var_mybool
Sys_mutex_deadlock_detector
(
"mutex_deadlock_detector"
,
"Enable checking of wrong mutex usage"
,
"
debug_
mutex_deadlock_detector"
,
"Enable checking of wrong mutex usage"
,
READ_ONLY
GLOBAL_VAR
(
safe_mutex_deadlock_detector
),
READ_ONLY
GLOBAL_VAR
(
safe_mutex_deadlock_detector
),
CMD_LINE
(
OPT_ARG
),
DEFAULT
(
TRUE
));
CMD_LINE
(
OPT_ARG
),
DEFAULT
(
TRUE
));
#endif
#endif
...
...
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