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
a8350cfb
Commit
a8350cfb
authored
Jun 24, 2021
by
Marko Mäkelä
Browse files
Options
Browse Files
Download
Plain Diff
Merge 10.5 into 10.6
parents
82fe83a3
5f22511e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
storage/innobase/buf/buf0dblwr.cc
storage/innobase/buf/buf0dblwr.cc
+1
-1
storage/innobase/buf/buf0flu.cc
storage/innobase/buf/buf0flu.cc
+4
-4
storage/innobase/include/buf0buf.h
storage/innobase/include/buf0buf.h
+3
-2
No files found.
storage/innobase/buf/buf0dblwr.cc
View file @
a8350cfb
...
...
@@ -356,7 +356,7 @@ void buf_dblwr_t::recover()
if
(
recv_sys
.
scanned_lsn
<
lsn
)
{
ib
::
warn
()
<<
"Ignoring a doublewrite copy of page "
<<
page_id
ib
::
info
()
<<
"Ignoring a doublewrite copy of page "
<<
page_id
<<
" with future log sequence number "
<<
lsn
;
continue
;
}
...
...
storage/innobase/buf/buf0flu.cc
View file @
a8350cfb
...
...
@@ -211,10 +211,10 @@ void buf_pool_t::insert_into_flush_list(buf_block_t *block, lsn_t lsn)
@param clear whether to invoke buf_page_t::clear_oldest_modification() */
void
buf_pool_t
::
delete_from_flush_list
(
buf_page_t
*
bpage
,
bool
clear
)
{
if
(
clear
)
bpage
->
clear_oldest_modification
();
delete_from_flush_list_low
(
bpage
);
stat
.
flush_list_bytes
-=
bpage
->
physical_size
();
if
(
clear
)
bpage
->
clear_oldest_modification
();
#ifdef UNIV_DEBUG
buf_flush_validate_skip
();
#endif
/* UNIV_DEBUG */
...
...
@@ -312,10 +312,10 @@ buf_flush_relocate_on_flush_list(
the bpage from the flush list. */
buf_pool
.
flush_hp
.
adjust
(
bpage
);
bpage
->
clear_oldest_modification
();
prev
=
UT_LIST_GET_PREV
(
list
,
bpage
);
UT_LIST_REMOVE
(
buf_pool
.
flush_list
,
bpage
);
bpage
->
clear_oldest_modification
();
}
else
{
/* bpage was removed from buf_pool.flush_list
since we last checked, and before we acquired
...
...
storage/innobase/include/buf0buf.h
View file @
a8350cfb
...
...
@@ -853,7 +853,7 @@ class buf_page_t
lsn_t
oldest_modification
()
const
{
return
oldest_modification_
;
}
/** Set oldest_modification when adding to buf_pool.flush_list */
inline
void
set_oldest_modification
(
lsn_t
lsn
);
/** Clear oldest_modification
when
removing from buf_pool.flush_list */
/** Clear oldest_modification
after
removing from buf_pool.flush_list */
inline
void
clear_oldest_modification
();
/** Note that a block is no longer dirty, while not removing
it from buf_pool.flush_list */
...
...
@@ -2146,10 +2146,11 @@ inline void buf_page_t::set_oldest_modification(lsn_t lsn)
{
mysql_mutex_assert_owner
(
&
buf_pool
.
flush_list_mutex
);
ut_ad
(
oldest_modification
()
<=
1
);
ut_ad
(
lsn
>
2
);
oldest_modification_
=
lsn
;
}
/** Clear oldest_modification
when
removing from buf_pool.flush_list */
/** Clear oldest_modification
after
removing from buf_pool.flush_list */
inline
void
buf_page_t
::
clear_oldest_modification
()
{
mysql_mutex_assert_owner
(
&
buf_pool
.
flush_list_mutex
);
...
...
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