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
fcd34fa2
Commit
fcd34fa2
authored
Oct 26, 2007
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: buf_pool_t: Add n_pend_unzip. Display it in buf_print().
parent
d7deb7fc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
buf/buf0buf.c
buf/buf0buf.c
+7
-0
include/buf0buf.h
include/buf0buf.h
+1
-0
No files found.
buf/buf0buf.c
View file @
fcd34fa2
...
...
@@ -1846,6 +1846,7 @@ buf_page_get_gen(
block
->
page
.
state
=
BUF_BLOCK_FILE_PAGE
;
block
->
page
.
buf_fix_count
=
1
;
buf_block_set_io_fix
(
block
,
BUF_IO_READ
);
buf_pool
->
n_pend_unzip
++
;
rw_lock_x_lock
(
&
block
->
lock
);
mutex_exit
(
&
block
->
mutex
);
mutex_exit
(
&
buf_pool
->
zip_mutex
);
...
...
@@ -1863,6 +1864,7 @@ buf_page_get_gen(
/* Unfix and unlatch the block. */
mutex_enter
(
&
buf_pool
->
mutex
);
mutex_enter
(
&
block
->
mutex
);
buf_pool
->
n_pend_unzip
--
;
block
->
page
.
buf_fix_count
--
;
buf_block_set_io_fix
(
block
,
BUF_IO_NONE
);
mutex_exit
(
&
block
->
mutex
);
...
...
@@ -2731,12 +2733,15 @@ buf_page_io_complete(
if
(
buf_page_get_zip_size
(
bpage
))
{
frame
=
bpage
->
zip
.
data
;
buf_pool
->
n_pend_unzip
++
;
if
(
uncompressed
&&
!
buf_zip_decompress
((
buf_block_t
*
)
bpage
,
FALSE
))
{
buf_pool
->
n_pend_unzip
--
;
goto
corrupt
;
}
buf_pool
->
n_pend_unzip
--
;
}
else
{
ut_a
(
uncompressed
);
frame
=
((
buf_block_t
*
)
bpage
)
->
frame
;
...
...
@@ -3191,6 +3196,7 @@ buf_print(void)
"database pages %lu
\n
"
"free pages %lu
\n
"
"modified database pages %lu
\n
"
"n pending decompressions %lu
\n
"
"n pending reads %lu
\n
"
"n pending flush LRU %lu list %lu single page %lu
\n
"
"pages read %lu, created %lu, written %lu
\n
"
,
...
...
@@ -3198,6 +3204,7 @@ buf_print(void)
(
ulong
)
UT_LIST_GET_LEN
(
buf_pool
->
LRU
),
(
ulong
)
UT_LIST_GET_LEN
(
buf_pool
->
free
),
(
ulong
)
UT_LIST_GET_LEN
(
buf_pool
->
flush_list
),
(
ulong
)
buf_pool
->
n_pend_unzip
,
(
ulong
)
buf_pool
->
n_pend_reads
,
(
ulong
)
buf_pool
->
n_flush
[
BUF_FLUSH_LRU
],
(
ulong
)
buf_pool
->
n_flush
[
BUF_FLUSH_LIST
],
...
...
include/buf0buf.h
View file @
fcd34fa2
...
...
@@ -1205,6 +1205,7 @@ struct buf_pool_struct{
zip buddy system,
indexed by block->frame */
ulint
n_pend_reads
;
/* number of pending read operations */
ulint
n_pend_unzip
;
/* number of pending decompressions */
time_t
last_printout_time
;
/* when buf_print was last time
called */
...
...
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