Skip to content

Commit bbdb47f

Browse files
committed
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.
1 parent 7660d8c commit bbdb47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

storage/innobase/include/trx0rec.ic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ trx_undo_rec_copy(
6565

6666
len = mach_read_from_2(undo_rec)
6767
- ut_align_offset(undo_rec, UNIV_PAGE_SIZE);
68-
ut_a(len < UNIV_PAGE_SIZE);
68+
ut_ad(len < UNIV_PAGE_SIZE);
6969
trx_undo_rec_t* rec = static_cast<trx_undo_rec_t*>(
7070
mem_heap_dup(heap, undo_rec, len));
7171
mach_write_to_2(rec, len);

0 commit comments

Comments
 (0)