Merge branch 'hn/reftable-tables-doc-update'
Doc updte. * hn/reftable-tables-doc-update: reftable: document an alternate cleanup method on Windows
This commit is contained in:
@ -1011,8 +1011,13 @@ reftable stack, reload `tables.list`, and delete any tables no longer mentioned
|
|||||||
in `tables.list`.
|
in `tables.list`.
|
||||||
|
|
||||||
Irregular program exit may still leave about unused files. In this case, a
|
Irregular program exit may still leave about unused files. In this case, a
|
||||||
cleanup operation can read `tables.list`, note its modification timestamp, and
|
cleanup operation should proceed as follows:
|
||||||
delete any unreferenced `*.ref` files that are older.
|
|
||||||
|
* take a lock `tables.list.lock` to prevent concurrent modifications
|
||||||
|
* refresh the reftable stack, by reading `tables.list`
|
||||||
|
* for each `*.ref` file, remove it if
|
||||||
|
** it is not mentioned in `tables.list`, and
|
||||||
|
** its max update_index is not beyond the max update_index of the stack
|
||||||
|
|
||||||
|
|
||||||
Alternatives considered
|
Alternatives considered
|
||||||
|
Reference in New Issue
Block a user