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
cff85ac1
Commit
cff85ac1
authored
Oct 05, 2011
by
Sergey Glukhov
Browse files
Options
Browse Files
Download
Plain Diff
automerge
parents
fcd99c15
739c5296
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
0 deletions
+8
-0
storage/innobase/include/sync0rw.ic
storage/innobase/include/sync0rw.ic
+1
-0
storage/innobase/sync/sync0rw.c
storage/innobase/sync/sync0rw.c
+3
-0
storage/innodb_plugin/include/sync0rw.ic
storage/innodb_plugin/include/sync0rw.ic
+1
-0
storage/innodb_plugin/sync/sync0rw.c
storage/innodb_plugin/sync/sync0rw.c
+3
-0
No files found.
storage/innobase/include/sync0rw.ic
View file @
cff85ac1
...
...
@@ -238,6 +238,7 @@ rw_lock_s_lock_func(
#ifdef UNIV_SYNC_DEBUG
ut_ad(!rw_lock_own(lock, RW_LOCK_SHARED)); /* see NOTE above */
ut_ad(!rw_lock_own(lock, RW_LOCK_EX));
#endif /* UNIV_SYNC_DEBUG */
mutex_enter(rw_lock_get_mutex(lock));
...
...
storage/innobase/sync/sync0rw.c
View file @
cff85ac1
...
...
@@ -476,6 +476,9 @@ rw_lock_x_lock_func(
ulint
i
;
/* spin round count */
ut_ad
(
rw_lock_validate
(
lock
));
#ifdef UNIV_SYNC_DEBUG
ut_ad
(
!
rw_lock_own
(
lock
,
RW_LOCK_SHARED
));
#endif
/* UNIV_SYNC_DEBUG */
lock_loop:
/* Acquire the mutex protecting the rw-lock fields */
...
...
storage/innodb_plugin/include/sync0rw.ic
View file @
cff85ac1
...
...
@@ -406,6 +406,7 @@ rw_lock_s_lock_func(
#ifdef UNIV_SYNC_DEBUG
ut_ad(!rw_lock_own(lock, RW_LOCK_SHARED)); /* see NOTE above */
ut_ad(!rw_lock_own(lock, RW_LOCK_EX));
#endif /* UNIV_SYNC_DEBUG */
/* TODO: study performance of UNIV_LIKELY branch prediction hints. */
...
...
storage/innodb_plugin/sync/sync0rw.c
View file @
cff85ac1
...
...
@@ -612,6 +612,9 @@ rw_lock_x_lock_func(
ibool
spinning
=
FALSE
;
ut_ad
(
rw_lock_validate
(
lock
));
#ifdef UNIV_SYNC_DEBUG
ut_ad
(
!
rw_lock_own
(
lock
,
RW_LOCK_SHARED
));
#endif
/* UNIV_SYNC_DEBUG */
i
=
0
;
...
...
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