Skip to content

Commit 079848c

Browse files
committed
Bug#21882024 - INNODB: FAILING ASSERTION: N_ALLOC < UNIV_PAGE_SIZE_MAX
Problem: -------- We allocate memory of maximum two pages of size UNIV_PAGE_SIZE_MAX(64k as of now) but we assert the length should be less than 128k With 64k page size, the allocated length is exactly 128k Fix: --- Fix the wrong comparision, it can be equal to 128k Reviewed-by: Sunny Bains <[email protected]> Approved over IM
1 parent 2cf71b5 commit 079848c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/os/os0file.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1925,7 +1925,7 @@ os_file_compress_page(
19251925

19261926
ulint n_alloc = *n * 2;
19271927

1928-
ut_a(n_alloc < UNIV_PAGE_SIZE_MAX * 2);
1928+
ut_a(n_alloc <= UNIV_PAGE_SIZE_MAX * 2);
19291929
ut_a(type.compression_algorithm().m_type != Compression::LZ4
19301930
|| static_cast<ulint>(LZ4_COMPRESSBOUND(*n)) < n_alloc);
19311931

0 commit comments

Comments
 (0)