summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-05-15 22:48:40 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2018-05-15 23:01:18 +0300
commit27f12c5d5b0b1596bb7918f06932ae566011c754 (patch)
tree446f42c342b459152715aeb7e7b814583abb7be8 /storage
parent93b69825adf5e55601ba44b4c89ec36ce62f8112 (diff)
downloadmariadb-git-27f12c5d5b0b1596bb7918f06932ae566011c754.tar.gz
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 97e51d24cb53da1198039ef100965202abec8bfa.
Diffstat (limited to 'storage')
-rw-r--r--storage/innobase/row/row0umod.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/storage/innobase/row/row0umod.cc b/storage/innobase/row/row0umod.cc
index 41ba66fd57d..47c515f70cf 100644
--- a/storage/innobase/row/row0umod.cc
+++ b/storage/innobase/row/row0umod.cc
@@ -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
so that we can access DB_TRX_ID, DB_ROLL_PTR. */
ulint offsets_[REC_OFFS_HEADER_SIZE + MAX_REF_PARTS + 2];
+ rec_offs_init(offsets_);
mem_heap_t* heap = NULL;
const ulint trx_id_pos = index->n_uniq ? index->n_uniq : 1;
ulint* offsets = rec_get_offsets(rec, index, offsets_, true,