Commit bbdb47ff authored by Marko Mäkelä's avatar Marko Mäkelä

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.
parent 7660d8c9
...@@ -65,7 +65,7 @@ trx_undo_rec_copy( ...@@ -65,7 +65,7 @@ trx_undo_rec_copy(
len = mach_read_from_2(undo_rec) len = mach_read_from_2(undo_rec)
- ut_align_offset(undo_rec, UNIV_PAGE_SIZE); - 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*>( trx_undo_rec_t* rec = static_cast<trx_undo_rec_t*>(
mem_heap_dup(heap, undo_rec, len)); mem_heap_dup(heap, undo_rec, len));
mach_write_to_2(rec, len); mach_write_to_2(rec, len);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment