Skip to content

Commit 53440e2

Browse files
committed
MDEV-17923: Fix the pointer arithmetics
&sys_buf + DATA_TRX_ID_LEN is not &(sys_buf + DATA_TRX_ID_LEN).
1 parent 52778e2 commit 53440e2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

storage/innobase/row/row0ftsort.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1688,12 +1688,12 @@ row_fts_merge_insert(
16881688

16891689
/* Set TRX_ID and ROLL_PTR */
16901690
trx_write_trx_id(sys_buf, trx->id);
1691-
trx_write_roll_ptr(sys_buf + DATA_TRX_ID_LEN,
1691+
trx_write_roll_ptr(&sys_buf[DATA_TRX_ID_LEN],
16921692
1ULL << ROLL_PTR_INSERT_FLAG_POS);
16931693
dfield_set_data(dtuple_get_nth_field(ins_ctx.tuple, 2),
1694-
&sys_buf, DATA_TRX_ID_LEN);
1694+
sys_buf, DATA_TRX_ID_LEN);
16951695
dfield_set_data(dtuple_get_nth_field(ins_ctx.tuple, 3),
1696-
&sys_buf + DATA_TRX_ID_LEN, DATA_ROLL_PTR_LEN);
1696+
&sys_buf[DATA_TRX_ID_LEN], DATA_ROLL_PTR_LEN);
16971697

16981698
ut_d(ins_ctx.aux_index_id = id);
16991699

0 commit comments

Comments
 (0)