Skip to content

Commit a8350cf

Browse files
committed
Merge 10.5 into 10.6
2 parents 82fe83a + 5f22511 commit a8350cf

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

storage/innobase/buf/buf0dblwr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ void buf_dblwr_t::recover()
356356

357357
if (recv_sys.scanned_lsn < lsn)
358358
{
359-
ib::warn() << "Ignoring a doublewrite copy of page " << page_id
359+
ib::info() << "Ignoring a doublewrite copy of page " << page_id
360360
<< " with future log sequence number " << lsn;
361361
continue;
362362
}

storage/innobase/buf/buf0flu.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -211,10 +211,10 @@ void buf_pool_t::insert_into_flush_list(buf_block_t *block, lsn_t lsn)
211211
@param clear whether to invoke buf_page_t::clear_oldest_modification() */
212212
void buf_pool_t::delete_from_flush_list(buf_page_t *bpage, bool clear)
213213
{
214-
if (clear)
215-
bpage->clear_oldest_modification();
216214
delete_from_flush_list_low(bpage);
217215
stat.flush_list_bytes-= bpage->physical_size();
216+
if (clear)
217+
bpage->clear_oldest_modification();
218218
#ifdef UNIV_DEBUG
219219
buf_flush_validate_skip();
220220
#endif /* UNIV_DEBUG */
@@ -312,10 +312,10 @@ buf_flush_relocate_on_flush_list(
312312
the bpage from the flush list. */
313313
buf_pool.flush_hp.adjust(bpage);
314314

315-
bpage->clear_oldest_modification();
316-
317315
prev = UT_LIST_GET_PREV(list, bpage);
318316
UT_LIST_REMOVE(buf_pool.flush_list, bpage);
317+
318+
bpage->clear_oldest_modification();
319319
} else {
320320
/* bpage was removed from buf_pool.flush_list
321321
since we last checked, and before we acquired

storage/innobase/include/buf0buf.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -853,7 +853,7 @@ class buf_page_t
853853
lsn_t oldest_modification() const { return oldest_modification_; }
854854
/** Set oldest_modification when adding to buf_pool.flush_list */
855855
inline void set_oldest_modification(lsn_t lsn);
856-
/** Clear oldest_modification when removing from buf_pool.flush_list */
856+
/** Clear oldest_modification after removing from buf_pool.flush_list */
857857
inline void clear_oldest_modification();
858858
/** Note that a block is no longer dirty, while not removing
859859
it from buf_pool.flush_list */
@@ -2146,10 +2146,11 @@ inline void buf_page_t::set_oldest_modification(lsn_t lsn)
21462146
{
21472147
mysql_mutex_assert_owner(&buf_pool.flush_list_mutex);
21482148
ut_ad(oldest_modification() <= 1);
2149+
ut_ad(lsn > 2);
21492150
oldest_modification_= lsn;
21502151
}
21512152

2152-
/** Clear oldest_modification when removing from buf_pool.flush_list */
2153+
/** Clear oldest_modification after removing from buf_pool.flush_list */
21532154
inline void buf_page_t::clear_oldest_modification()
21542155
{
21552156
mysql_mutex_assert_owner(&buf_pool.flush_list_mutex);

0 commit comments

Comments
 (0)