Skip to content
Snippets Groups Projects
Commit d139f245 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Vladimir Davydov
Browse files

xlog: introduce xlog_remove_file function for removing xlog files

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.

Needed for tarantool/tarantool-ee#540

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring
parent 8a0c586c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment