mariadb/storage/innobase/log
Marko Mäkelä 759e3523e3 MDEV-38026 Recovery of FILE_CREATE fails to create a file
fil_ibd_create(): Add a DEBUG_SYNC point for the test case.

fil_node_open_file_low(): If node->deferred is set, set the
OS_FILE_ON_ERROR_SILENT flag on OS_FILE_OPEN and attempt
OS_FILE_CREATE if needed. If this fails, then InnoDB will
refuse to start up, giving the operator a chance to resolve
the situation, for example by freeing up some space in the
file system.

recv_validate_tablespace(): Invoke deferred_spaces.add() on
any missing tablespace for which we know the LSN of the FILE_CREATE
record. In this way, fil_node_open_file_low() will end up being invoked
on files that are supposed to be created.

fil_name_process(): For FILE_CREATE, remember the create_lsn.

recv_sys_t::parse(): Pass FILE_CREATE to fil_name_process().

Some existing tests have been adjusted for the improved recovery of
file creation.

Reviewed by: Thirunarayanan Balathandayuthapani
Tested by: Saahil Alam
2025-11-07 08:09:08 +02:00
..
log0crypt.cc Merge 10.5 into 10.6 2021-06-23 09:24:32 +03:00
log0log.cc MDEV-35171 OS_FILE_NORMAL and OS_FILE_AIO are misleading 2024-10-21 15:31:32 +02:00
log0recv.cc MDEV-38026 Recovery of FILE_CREATE fails to create a file 2025-11-07 08:09:08 +02:00
log0sync.cc Fixed compiler error with framesize=16384 in InnoDB log0sync.cc 2025-07-27 16:35:12 +03:00
log0sync.h MDEV-26789 log_write_up_to needs mechanism to prevent stalls of async. waiters 2021-10-08 13:18:59 +02:00