Skip to content

Draft: xlog: introduce xlog_remove_file function for removing xlog files

Feodor Alexandrov requested to merge file-shred into 2.11.2-picodata

This commit introduces the xlog_remove_file() function that removes a file by name and logs the error on failure. We use this function everywhere we delete xlog files so that there's a single place where we call unlink(). We also factor out the core functionality to a callback function that can be overridden. This will help us implement thorough file deletion.

Added the xlog_remove_init callback to allow using it from ffi.

Needed for tarantool/tarantool-ee#540

NO_DOC=refactoring NO_TEST=refactoring NO_CHANGELOG=refactoring

Merge request reports