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.
This commit is contained in:
Marko Mäkelä 2018-02-08 12:28:07 +02:00
parent 7660d8c94e
commit bbdb47ffe4

View file

@ -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);