Add parameter to write archive log directly to innodb_redo_log_archive_dirs os path.

Description

1.problem :
- when running xtrabackup as a non-root user, Due to a security issue, the following error occurs and the redo_log_arch_dir function cannot be used.

2.issue purpose :
- Using the redo_log_arch_dir_direct new parameter, write archive redo log directly without creating archive.subdir folder in innodb_redo_log_archive_dirs os path.

3.changed Archived_Redo_Log_Monitor::thread_func function pseudo code :
- source code path : storage/innobase/xtrabackup/src/redo_log.cc
- source code function : Archived_Redo_Log_Monitor::thread_func()

4.full text of the changed Archived_Redo_Log_Monitor::thread_func function :
- appendix ( additional comment of “add var”, “add if” )

5.changed Archived_Redo_Log_Monitor::thread_func function xtrabackup log :

 

If you need further explanation, please comment.

thank you.

Environment

None

Activity

Aaditya Dubey December 27, 2023 at 9:28 AM

Hi

Thank you for the report and feedback.

kangwon son December 20, 2023 at 5:17 AM

+ add full text of the changed Archived_Redo_Log_Monitor::thread_func function

kangwon son December 20, 2023 at 4:54 AM

+ add environment

  • OS : centos 7.9

  • MySQL version : 8.0.32

  • Xtrabackup version : 8.0.35-30

Details

Assignee

Reporter

Needs Review

Yes

Needs QA

Yes

Affects versions

Priority

Smart Checklist

Created December 20, 2023 at 4:50 AM
Updated March 6, 2024 at 6:00 PM