summaryrefslogtreecommitdiff
path: root/storage/innobase/include/trx0rec.ic
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2018-02-08 12:28:07 +0200
committerMarko Mäkelä <marko.makela@mariadb.com>2018-02-08 12:28:07 +0200
commitbbdb47ffe49522a2d639206e6ff3be719d6eadb3 (patch)
tree9b60116413fe0d7c40efc21dea63bb23c3cf4d01 /storage/innobase/include/trx0rec.ic
parent7660d8c94ec8c8c24e0a5eea66d55dd8d0e1c25c (diff)
downloadmariadb-git-bbdb47ffe49522a2d639206e6ff3be719d6eadb3.tar.gz
Revert an accidental change
trx_undo_rec_copy(): Use a debug assertion. In a non-debug build, with len<0 (which this assertion is really testing for) we should still typically crash due to running out of memory.
Diffstat (limited to 'storage/innobase/include/trx0rec.ic')
-rw-r--r--storage/innobase/include/trx0rec.ic2
1 files changed, 1 insertions, 1 deletions
diff --git a/storage/innobase/include/trx0rec.ic b/storage/innobase/include/trx0rec.ic
index 8e16a76c74e..5ae34c486cc 100644
--- a/storage/innobase/include/trx0rec.ic
+++ b/storage/innobase/include/trx0rec.ic
@@ -65,7 +65,7 @@ trx_undo_rec_copy(
len = mach_read_from_2(undo_rec)
- ut_align_offset(undo_rec, UNIV_PAGE_SIZE);
- ut_a(len < UNIV_PAGE_SIZE);
+ ut_ad(len < UNIV_PAGE_SIZE);
trx_undo_rec_t* rec = static_cast<trx_undo_rec_t*>(
mem_heap_dup(heap, undo_rec, len));
mach_write_to_2(rec, len);