mirror of
https://github.com/MariaDB/server.git
synced 2025-01-28 17:54:16 +01:00
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:
parent
7660d8c94e
commit
bbdb47ffe4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue