Commit 27f12c5d authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-16143 Assertion failure in rec_offs_get_n_alloc() due to row_trx_id_offset()

row_trx_id_offset(): Add the missing rec_offs_init() call.
This was broken by commit 97e51d24.
parent 93b69825
...@@ -162,6 +162,7 @@ static ulint row_trx_id_offset(const rec_t* rec, const dict_index_t* index) ...@@ -162,6 +162,7 @@ static ulint row_trx_id_offset(const rec_t* rec, const dict_index_t* index)
/* Reserve enough offsets for the PRIMARY KEY and 2 columns /* Reserve enough offsets for the PRIMARY KEY and 2 columns
so that we can access DB_TRX_ID, DB_ROLL_PTR. */ so that we can access DB_TRX_ID, DB_ROLL_PTR. */
ulint offsets_[REC_OFFS_HEADER_SIZE + MAX_REF_PARTS + 2]; ulint offsets_[REC_OFFS_HEADER_SIZE + MAX_REF_PARTS + 2];
rec_offs_init(offsets_);
mem_heap_t* heap = NULL; mem_heap_t* heap = NULL;
const ulint trx_id_pos = index->n_uniq ? index->n_uniq : 1; const ulint trx_id_pos = index->n_uniq ? index->n_uniq : 1;
ulint* offsets = rec_get_offsets(rec, index, offsets_, true, ulint* offsets = rec_get_offsets(rec, index, offsets_, true,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment