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
baf0f21f
Commit
baf0f21f
authored
Jul 10, 2007
by
sunny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix change missed as part of Bug# 15815. Use a function to check if a block
needs to be made younger.
parent
d01057ba
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
buf/buf0buf.c
buf/buf0buf.c
+1
-2
include/buf0buf.ic
include/buf0buf.ic
+1
-1
No files found.
buf/buf0buf.c
View file @
baf0f21f
...
@@ -903,8 +903,7 @@ buf_block_make_young(
...
@@ -903,8 +903,7 @@ buf_block_make_young(
/* Note that we read freed_page_clock's without holding any mutex:
/* Note that we read freed_page_clock's without holding any mutex:
this is allowed since the result is used only in heuristics */
this is allowed since the result is used only in heuristics */
if
(
buf_pool
->
freed_page_clock
>=
block
->
freed_page_clock
if
(
buf_block_peek_if_too_old
(
block
))
{
+
1
+
(
buf_pool
->
curr_size
/
4
))
{
mutex_enter
(
&
buf_pool
->
mutex
);
mutex_enter
(
&
buf_pool
->
mutex
);
/* There has been freeing activity in the LRU list:
/* There has been freeing activity in the LRU list:
...
...
include/buf0buf.ic
View file @
baf0f21f
...
@@ -28,7 +28,7 @@ buf_block_peek_if_too_old(
...
@@ -28,7 +28,7 @@ buf_block_peek_if_too_old(
buf_block_t* block) /* in: block to make younger */
buf_block_t* block) /* in: block to make younger */
{
{
return(buf_pool->freed_page_clock >= block->freed_page_clock
return(buf_pool->freed_page_clock >= block->freed_page_clock
+ 1 + (buf_pool->curr_size /
102
4));
+ 1 + (buf_pool->curr_size / 4));
}
}
/*************************************************************************
/*************************************************************************
...
...
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