Skip to content
Snippets Groups Projects
Commit 6c5329af authored by Vladimir Davydov's avatar Vladimir Davydov Committed by Roman Tsisyk
Browse files

xctl: separate gc from metadata log rotation

This patch is a preparation for centralized garbage collection. It
extracts the code doing garbage collection from xctl_rotate() and
places it in a separate function xctl_collect_garbage(). The latter
takes a signature which determines the minimal age an object has to
have to be deleted - the function only removes files left from objects
that were deleted before the log received the given signature. It is
needed for making vinyl respect box.cfg.snapshot_count.
parent bc6457a1
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