Skip to content
Snippets Groups Projects
Commit 3f03fd90 authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Dmitry Ivanov
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

Cherry-picked from d139f245

NO_DOC=refactoring
NO_TEST=refactoring
NO_CHANGELOG=refactoring
parent 36fa0d8e
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