Fix clang++-19 -Wunused-but-set-variable
This commit is contained in:
parent
ecd910ae3a
commit
e40dfcdd89
@ -837,7 +837,7 @@ bool buf_LRU_free_page(buf_page_t *bpage, bool zip)
|
|||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
mysql_mutex_lock(&buf_pool.flush_list_mutex);
|
mysql_mutex_lock(&buf_pool.flush_list_mutex);
|
||||||
if (const lsn_t om = bpage->oldest_modification()) {
|
if (ut_d(const lsn_t om =) bpage->oldest_modification()) {
|
||||||
ut_ad(om == 1);
|
ut_ad(om == 1);
|
||||||
buf_pool.delete_from_flush_list(bpage);
|
buf_pool.delete_from_flush_list(bpage);
|
||||||
}
|
}
|
||||||
|
@ -421,8 +421,7 @@ inline void page_rec_set_n_owned(buf_block_t *block, rec_t *rec, ulint n_owned,
|
|||||||
ut_ad(block->frame == page_align(rec));
|
ut_ad(block->frame == page_align(rec));
|
||||||
ut_ad(comp == (page_is_comp(block->frame) != 0));
|
ut_ad(comp == (page_is_comp(block->frame) != 0));
|
||||||
|
|
||||||
if (page_zip_des_t *page_zip= compressed
|
if (compressed && is_buf_block_get_page_zip(block))
|
||||||
? buf_block_get_page_zip(block) : nullptr)
|
|
||||||
{
|
{
|
||||||
ut_ad(comp);
|
ut_ad(comp);
|
||||||
rec_set_bit_field_1(rec, n_owned, REC_NEW_N_OWNED,
|
rec_set_bit_field_1(rec, n_owned, REC_NEW_N_OWNED,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user