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
903287c1
Commit
903287c1
authored
Jan 27, 2010
by
Aleksandr Kuzminsky
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync with extensions-1.0.6 Revision 137
parent
10920d46
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
buf/buf0flu.c
buf/buf0flu.c
+5
-1
No files found.
buf/buf0flu.c
View file @
903287c1
...
...
@@ -1271,7 +1271,7 @@ buf_flush_LRU_recommendation(void)
if
(
UT_LIST_GET_LEN
(
buf_pool
->
unzip_LRU
))
have_LRU_mutex
=
TRUE
;
retry:
//buf_pool_mutex_enter();
if
(
have_LRU_mutex
)
mutex_enter
(
&
LRU_list_mutex
);
...
...
@@ -1313,6 +1313,10 @@ buf_flush_LRU_recommendation(void)
if
(
n_replaceable
>=
BUF_FLUSH_FREE_BLOCK_MARGIN
)
{
return
(
0
);
}
else
if
(
!
have_LRU_mutex
)
{
/* confirm it again with LRU_mutex for exactness */
have_LRU_mutex
=
TRUE
;
goto
retry
;
}
return
(
BUF_FLUSH_FREE_BLOCK_MARGIN
+
BUF_FLUSH_EXTRA_MARGIN
...
...
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