diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2018-02-08 12:28:07 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2018-02-08 12:28:07 +0200 |
commit | bbdb47ffe49522a2d639206e6ff3be719d6eadb3 (patch) | |
tree | 9b60116413fe0d7c40efc21dea63bb23c3cf4d01 /storage/innobase/include/trx0rec.ic | |
parent | 7660d8c94ec8c8c24e0a5eea66d55dd8d0e1c25c (diff) | |
download | mariadb-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.ic | 2 |
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); |