mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-03 10:17:40 +00:00
docs/data structures: add simple example compaction run
This commit is contained in:
parent
691c6adc04
commit
f8c63f9a66
3 changed files with 6 additions and 0 deletions
BIN
docs/internals/compaction.png
Normal file
BIN
docs/internals/compaction.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 757 KiB |
BIN
docs/internals/compaction.vsd
Normal file
BIN
docs/internals/compaction.vsd
Normal file
Binary file not shown.
|
@ -176,6 +176,12 @@ a new segment, while superseded entries are omitted. After each segment an inter
|
|||
commit is written to the new segment. Then, the old segment is deleted
|
||||
(asserting that the reference count diminished to zero), freeing disk space.
|
||||
|
||||
A simplified example (excluding conditional compaction and with simpler
|
||||
commit logic) showing the principal operation of compaction:
|
||||
|
||||
.. figure::
|
||||
compaction.png
|
||||
|
||||
(The actual algorithm is more complex to avoid various consistency issues, refer to
|
||||
the ``borg.repository`` module for more comments and documentation on these issues.)
|
||||
|
||||
|
|
Loading…
Reference in a new issue