[MDEV-25710] Dead code os_file_opendir() in the server Created: 2021-05-18  Updated: 2023-09-26  Resolved: 2021-05-18

Status: Closed
Project: MariaDB Server
Component/s: Embedded Server, mariabackup, Server
Affects Version/s: 10.4, 10.5, 10.6
Fix Version/s: 10.6.1, 10.4.20, 10.5.11

Type: Bug Priority: Major
Reporter: Marko Mäkelä Assignee: Marko Mäkelä
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Relates
relates to MDEV-13564 TRUNCATE TABLE and undo tablespace tr... Closed
relates to MDEV-24044 mariabackup --backup: [ERROR] InnoDB:... Closed

 Description   

The functions fil_file_readdir_next_file(), os_file_opendir(), os_file_closedir() became dead code in the server in MariaDB 10.4.0 with the removal of the crash recovery logic for the TRUNCATE implementation that was introduced in MariaDB Server 10.2.2 and replaced in MDEV-13564.

These functions are only used in mariabackup and not in MariaDB Server at all. Hence, the code must be moved to mariabackup.


Generated at Thu Feb 08 09:39:45 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.