summaryrefslogtreecommitdiff
path: root/storage/innobase/btr/btr0cur.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2017-07-03 12:13:01 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2017-07-03 12:17:10 +0300
commitd438a448e61e3584145869c3f3305207d000fd0d (patch)
treeb841779ed1e58b8501ddd3df60a876bb4e31c6c8 /storage/innobase/btr/btr0cur.cc
parent56ff6f1b0b248befb80675ba36a3251c7844f410 (diff)
downloadmariadb-git-d438a448e61e3584145869c3f3305207d000fd0d.tar.gz
MDEV-13228 Assertion `n < rec_offs_n_fields(offsets)' failed in rec_get_nth_field_offs upon crash recovery with compressed table
In my preparatory patch for MDEV-12288, there was an off-by-one array initialization error that affected debug builds.
Diffstat (limited to 'storage/innobase/btr/btr0cur.cc')
-rw-r--r--storage/innobase/btr/btr0cur.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/innobase/btr/btr0cur.cc b/storage/innobase/btr/btr0cur.cc
index a672f451ea9..14b24bcd9fd 100644
--- a/storage/innobase/btr/btr0cur.cc
+++ b/storage/innobase/btr/btr0cur.cc
@@ -4601,7 +4601,7 @@ btr_cur_parse_del_mark_set_clust_rec(
btr_rec_set_deleted_flag(rec, page_zip, val);
ut_ad(pos <= MAX_REF_PARTS);
- ulint offsets[REC_OFFS_HEADER_SIZE + MAX_REF_PARTS + 2];
+ ulint offsets[REC_OFFS_HEADER_SIZE + MAX_REF_PARTS + 3];
rec_offs_init(offsets);
mem_heap_t* heap = NULL;
@@ -4609,7 +4609,7 @@ btr_cur_parse_del_mark_set_clust_rec(
row_upd_rec_sys_fields_in_recovery(
rec, page_zip,
rec_get_offsets(rec, index, offsets,
- pos + 1, &heap),
+ pos + 2, &heap),
pos, trx_id, roll_ptr);
} else {
/* In delete-marked records, DB_TRX_ID must