From bbdb47ffe49522a2d639206e6ff3be719d6eadb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20M=C3=A4kel=C3=A4?= Date: Thu, 8 Feb 2018 12:28:07 +0200 Subject: [PATCH] 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. --- storage/innobase/include/trx0rec.ic | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( mem_heap_dup(heap, undo_rec, len)); mach_write_to_2(rec, len);