浏览代码

docs/data structures: add simple example compaction run

Marian Beermann 8 年之前
父节点
当前提交
f8c63f9a66
共有 3 个文件被更改,包括 6 次插入0 次删除
  1. 二进制
      docs/internals/compaction.png
  2. 二进制
      docs/internals/compaction.vsd
  3. 6 0
      docs/internals/data-structures.rst

二进制
docs/internals/compaction.png


二进制
docs/internals/compaction.vsd


+ 6 - 0
docs/internals/data-structures.rst

@@ -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.)