Skip to content

Commit 139333a

Browse files
committed
MDEV-25745: Not applying INSERT_REUSE_REDUNDANT
page_apply_insert_redundant(): Correct a condition that would occasionally fail when recovering changes for the change buffer tree (where extra_size and data_size can vary wildly). This was broken in commit 138cbec (MDEV-21724).
1 parent 6ca0654 commit 139333a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/page/page0cur.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2443,7 +2443,7 @@ bool page_apply_insert_redundant(const buf_block_t &block, bool reuse,
24432443
if (UNIV_UNLIKELY(free_rec - fextra_size < heap_bot))
24442444
goto corrupted;
24452445
const ulint fdata_size= rec_get_data_size_old(free_rec);
2446-
if (UNIV_UNLIKELY(free_rec + data_size > heap_top))
2446+
if (UNIV_UNLIKELY(free_rec + fdata_size > heap_top))
24472447
goto corrupted;
24482448
if (UNIV_UNLIKELY(extra_size + data_size > fextra_size + fdata_size))
24492449
goto corrupted;

0 commit comments

Comments
 (0)