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
51d210d4
Commit
51d210d4
authored
Mar 16, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: sync_thread_add_level(): Make the assertions about
level == SYNC_BUF_BLOCK more readable.
parent
0511d153
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
sync/sync0sync.c
sync/sync0sync.c
+4
-3
No files found.
sync/sync0sync.c
View file @
51d210d4
...
...
@@ -1107,9 +1107,10 @@ sync_thread_add_level(
/* Either the thread must own the buffer pool mutex
(buf_pool_mutex), or it is allowed to latch only ONE
buffer block (block->mutex or buf_pool_zip_mutex). */
ut_a
((
sync_thread_levels_contain
(
array
,
SYNC_BUF_POOL
)
&&
sync_thread_levels_g
(
array
,
SYNC_BUF_BLOCK
-
1
))
||
sync_thread_levels_g
(
array
,
SYNC_BUF_BLOCK
));
if
(
!
sync_thread_levels_g
(
array
,
level
))
{
ut_a
(
sync_thread_levels_g
(
array
,
level
-
1
));
ut_a
(
sync_thread_levels_contain
(
array
,
SYNC_BUF_POOL
));
}
break
;
case
SYNC_REC_LOCK
:
ut_a
((
sync_thread_levels_contain
(
array
,
SYNC_KERNEL
)
...
...
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