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
b0dd5e7a
Commit
b0dd5e7a
authored
Oct 04, 2011
by
kevin.lewis@oracle.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge from mysql-5.1 to mysql-5.5
parents
4c4a2599
23923646
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
storage/innobase/include/sync0rw.h
storage/innobase/include/sync0rw.h
+3
-2
storage/innobase/sync/sync0rw.c
storage/innobase/sync/sync0rw.c
+5
-1
No files found.
storage/innobase/include/sync0rw.h
View file @
b0dd5e7a
...
...
@@ -542,7 +542,7 @@ mutex. */
UNIV_INTERN
void
rw_lock_debug_mutex_enter
(
void
);
/*==========================*/
/*==========================
=
*/
/******************************************************************//**
Releases the debug mutex. */
UNIV_INTERN
...
...
@@ -632,7 +632,8 @@ struct rw_lock_struct {
};
#ifdef UNIV_SYNC_DEBUG
/** The structure for storing debug info of an rw-lock */
/** The structure for storing debug info of an rw-lock. All access to this
structure must be protected by rw_lock_debug_mutex_enter(). */
struct
rw_lock_debug_struct
{
os_thread_id_t
thread_id
;
/*!< The thread id of the thread which
...
...
storage/innobase/sync/sync0rw.c
View file @
b0dd5e7a
...
...
@@ -715,7 +715,7 @@ mutex. */
UNIV_INTERN
void
rw_lock_debug_mutex_enter
(
void
)
/*==========================*/
/*==========================
=
*/
{
loop:
if
(
0
==
mutex_enter_nowait
(
&
rw_lock_debug_mutex
))
{
...
...
@@ -942,11 +942,13 @@ rw_lock_list_print_info(
putc
(
'\n'
,
file
);
}
rw_lock_debug_mutex_enter
();
info
=
UT_LIST_GET_FIRST
(
lock
->
debug_list
);
while
(
info
!=
NULL
)
{
rw_lock_debug_print
(
file
,
info
);
info
=
UT_LIST_GET_NEXT
(
list
,
info
);
}
rw_lock_debug_mutex_exit
();
}
#ifndef INNODB_RW_LOCKS_USE_ATOMICS
mutex_exit
(
&
(
lock
->
mutex
));
...
...
@@ -990,11 +992,13 @@ rw_lock_print(
putc
(
'\n'
,
stderr
);
}
rw_lock_debug_mutex_enter
();
info
=
UT_LIST_GET_FIRST
(
lock
->
debug_list
);
while
(
info
!=
NULL
)
{
rw_lock_debug_print
(
stderr
,
info
);
info
=
UT_LIST_GET_NEXT
(
list
,
info
);
}
rw_lock_debug_mutex_exit
();
}
}
...
...
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