mariadb/storage/innobase/fil
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
..
fil0crypt.cc MDEV-33978 P_S.THREADS is not showing all server threads 2025-01-27 12:08:30 +02:00
fil0fil.cc MDEV-38026 Recovery of FILE_CREATE fails to create a file 2025-11-07 08:09:08 +02:00
fil0pagecompress.cc MDEV-33095 innodb_flush_method=O_DIRECT creates excessive errors on Solaris 2024-01-19 15:34:33 +11:00