Skip to content

Commit 4318391

Browse files
committed
Merge 10.5 into 10.6
2 parents 027a996 + c0470ca commit 4318391

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

storage/innobase/page/page0cur.cc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1648,7 +1648,9 @@ page_cur_insert_rec_low(
16481648
{
16491649
const byte *r= rec;
16501650
const byte *c= cur->rec;
1651-
const byte *c_end= c + (page_rec_is_infimum(c) ? 8 : data_size);
1651+
const byte *c_end= c + data_size;
1652+
if (page_rec_is_infimum(c) && data_size > 8)
1653+
c_end= c + 8;
16521654
static_assert(REC_N_OLD_EXTRA_BYTES == REC_N_NEW_EXTRA_BYTES + 1, "");
16531655
if (c <= insert_buf && c_end > insert_buf)
16541656
c_end= insert_buf;

0 commit comments

Comments
 (0)