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
e2d96e8a
Commit
e2d96e8a
authored
Dec 28, 2018
by
Sergey Vojtovich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-17441 - InnoDB transition to C++11 atomics
buf_pool_t::n_pend_unzip transition to Atomic_counter.
parent
66bca0df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
storage/innobase/buf/buf0buf.cc
storage/innobase/buf/buf0buf.cc
+2
-2
storage/innobase/include/buf0buf.h
storage/innobase/include/buf0buf.h
+2
-1
No files found.
storage/innobase/buf/buf0buf.cc
View file @
e2d96e8a
...
...
@@ -5939,10 +5939,10 @@ buf_page_io_complete(buf_page_t* bpage, bool dblwr, bool evict)
}
if
(
bpage
->
zip
.
data
&&
uncompressed
)
{
my_atomic_addlint
(
&
buf_pool
->
n_pend_unzip
,
1
)
;
buf_pool
->
n_pend_unzip
++
;
ibool
ok
=
buf_zip_decompress
((
buf_block_t
*
)
bpage
,
FALSE
);
my_atomic_addlint
(
&
buf_pool
->
n_pend_unzip
,
ulint
(
-
1
))
;
buf_pool
->
n_pend_unzip
--
;
if
(
!
ok
)
{
ib
::
info
()
<<
"Page "
...
...
storage/innobase/include/buf0buf.h
View file @
e2d96e8a
...
...
@@ -2082,7 +2082,8 @@ struct buf_pool_t{
indexed by block->frame */
ulint
n_pend_reads
;
/*!< number of pending read
operations */
ulint
n_pend_unzip
;
/*!< number of pending decompressions */
Atomic_counter
<
ulint
>
n_pend_unzip
;
/*!< number of pending decompressions */
time_t
last_printout_time
;
/*!< when buf_print_io was last time
...
...
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