Skip to content

reftable/stack: register temporary files

Patrick Steinhardt requested to merge pks-reftable-register-tempfiles into master

When writing to a reftable stack there are several kinds of temporary files that we have to write. For one this is the new table, second the new "tables.list.lock" file. We do not register all of these with the tempfiles subsystem though, which can have the consequence that interrupted writes may leave those files behind.

This patch series addresses those cases for three cases:

  • Newly written tables.

  • Newly compacted tables.

  • Pending "tables.list.lock" during compaction.

The end result should be more robust regarding interruption and leave left cruft behind.

Closes reftable: tables and tables.list may not be pru... (#256 - closed).

Edited by Patrick Steinhardt

Merge request reports