Skip to content

Commit

Permalink
Revert an accidental change
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dr-m committed Feb 8, 2018
1 parent 7660d8c commit bbdb47f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion storage/innobase/include/trx0rec.ic
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit bbdb47f

Please sign in to comment.