1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00
Files
Andrzej Jarzabek c68fe071c3 MDEV-40239, MDEV-41616: Fix undo log page add failure injection
The debug injection ib_err_ins_undo_page_add_failure in
trx_undo_report_row_operation() cleared undo_block to simulate a
failure of trx_undo_add_page(), but left err as DB_SUCCESS.
The function then returned DB_SUCCESS without writing an undo log
record or setting *roll_ptr, so callers stored an invalid DB_ROLL_PTR
in clustered index records. This caused assertion failures in
trx_undo_page_report_modify() and trx_undo_prev_version_build().

The injection now also sets err=DB_OUT_OF_FILE_SPACE, simulating
running out of tablespace capacity.

MDEV-41616: when that failure was reported, ib_errf() was given the
dberr_t value DB_OUT_OF_FILE_SPACE where an error number was expected,
so the client received an unrelated message. Use
ER_INNODB_UNDO_LOG_FULL.
2026-10-21 20:30:16 +02:00
..
2026-08-19 08:13:54 +02:00
2026-08-19 08:13:54 +02:00
2026-03-11 09:06:05 +02:00
2026-07-23 11:12:27 +02:00
2024-11-29 12:37:46 +02:00
2024-06-24 13:09:47 +03:00