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
8ea807c6
Commit
8ea807c6
authored
Oct 04, 2011
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge from mysql-5.1 to mysql-5.5
parents
0122a138
c6d47e6e
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 @
8ea807c6
...
...
@@ -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 @
8ea807c6
...
...
@@ -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