Skip to content

Commit 2b551ed

Browse files
committed
Merge 10.6 into 10.7
2 parents db8248d + 9b967c4 commit 2b551ed

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

storage/innobase/buf/buf0buddy.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,7 @@ buf_buddy_block_free(void* buf)
362362
ut_ad(bpage->in_zip_hash);
363363
ut_d(bpage->in_zip_hash = false);
364364
HASH_DELETE(buf_page_t, hash, &buf_pool.zip_hash, fold, bpage);
365+
bpage->hash = nullptr;
365366

366367
ut_d(memset(buf, 0, srv_page_size));
367368
MEM_UNDEFINED(buf, srv_page_size);

storage/innobase/buf/buf0buf.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ buf_pool.LRU.
219219
220220
The chains of free memory blocks (buf_pool.zip_free[]) are used by
221221
the buddy allocator (buf0buddy.cc) to keep track of currently unused
222-
memory blocks of size sizeof(buf_page_t)..srv_page_size / 2. These
222+
memory blocks of size UNIV_PAGE_SIZE_MIN..srv_page_size / 2. These
223223
blocks are inside the srv_page_size-sized memory blocks of type
224224
BUF_BLOCK_MEMORY that the buddy allocator requests from the buffer
225225
pool. The buddy allocator is solely used for allocating control

storage/innobase/buf/buf0lru.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1010,6 +1010,7 @@ buf_LRU_block_free_non_file_page(
10101010
ut_ad(!block->page.in_free_list);
10111011
ut_ad(!block->page.oldest_modification());
10121012
ut_ad(!block->page.in_LRU_list);
1013+
ut_ad(!block->page.hash);
10131014

10141015
block->page.set_state(BUF_BLOCK_NOT_USED);
10151016

0 commit comments

Comments
 (0)