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
e00f417a
Commit
e00f417a
authored
Oct 31, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: buf_LRU_block_remove_hashed_page(): Add some Valgrind
instrumentation.
parent
d321ea11
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
buf/buf0lru.c
buf/buf0lru.c
+7
-0
No files found.
buf/buf0lru.c
View file @
e00f417a
...
@@ -1188,12 +1188,17 @@ buf_LRU_block_remove_hashed_page(
...
@@ -1188,12 +1188,17 @@ buf_LRU_block_remove_hashed_page(
ut_a
(
buf_page_get_io_fix
(
bpage
)
==
BUF_IO_NONE
);
ut_a
(
buf_page_get_io_fix
(
bpage
)
==
BUF_IO_NONE
);
ut_a
(
bpage
->
buf_fix_count
==
0
);
ut_a
(
bpage
->
buf_fix_count
==
0
);
UNIV_MEM_ASSERT_RW
(
bpage
,
sizeof
*
bpage
);
buf_LRU_remove_block
(
bpage
);
buf_LRU_remove_block
(
bpage
);
buf_pool
->
freed_page_clock
+=
1
;
buf_pool
->
freed_page_clock
+=
1
;
switch
(
buf_page_get_state
(
bpage
))
{
switch
(
buf_page_get_state
(
bpage
))
{
case
BUF_BLOCK_FILE_PAGE
:
case
BUF_BLOCK_FILE_PAGE
:
UNIV_MEM_ASSERT_W
(
bpage
,
sizeof
(
buf_block_t
));
UNIV_MEM_ASSERT_W
(((
buf_block_t
*
)
bpage
)
->
frame
,
UNIV_PAGE_SIZE
);
buf_block_modify_clock_inc
((
buf_block_t
*
)
bpage
);
buf_block_modify_clock_inc
((
buf_block_t
*
)
bpage
);
if
(
bpage
->
zip
.
data
)
{
if
(
bpage
->
zip
.
data
)
{
const
page_t
*
page
=
((
buf_block_t
*
)
bpage
)
->
frame
;
const
page_t
*
page
=
((
buf_block_t
*
)
bpage
)
->
frame
;
...
@@ -1233,6 +1238,8 @@ buf_LRU_block_remove_hashed_page(
...
@@ -1233,6 +1238,8 @@ buf_LRU_block_remove_hashed_page(
/* fall through */
/* fall through */
case
BUF_BLOCK_ZIP_PAGE
:
case
BUF_BLOCK_ZIP_PAGE
:
ut_a
(
bpage
->
oldest_modification
==
0
);
ut_a
(
bpage
->
oldest_modification
==
0
);
UNIV_MEM_ASSERT_W
(
bpage
->
zip
.
data
,
page_zip_get_size
(
&
bpage
->
zip
));
break
;
break
;
case
BUF_BLOCK_ZIP_FREE
:
case
BUF_BLOCK_ZIP_FREE
:
case
BUF_BLOCK_ZIP_DIRTY
:
case
BUF_BLOCK_ZIP_DIRTY
:
...
...
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