mirror of
https://github.com/borgbackup/borg.git
synced 2025-03-10 06:03:38 +00:00
shadow index: add more comments
This commit is contained in:
parent
a13504c6d5
commit
2a2b750b9d
1 changed files with 3 additions and 0 deletions
|
@ -170,6 +170,9 @@ class Repository:
|
|||
# segment_n PUT A, segment_x DELETE A
|
||||
# After the "DELETE A" in segment_x the shadow index will contain "A -> [n]".
|
||||
# .delete() is updating this index, it is persisted into "hints" file and is later used by .compact_segments().
|
||||
# We need the entries in the shadow_index to not accidentally drop the "DELETE A" when we compact segment_x
|
||||
# only (and we do not compact segment_n), because DELETE A is still needed then because PUT A will be still
|
||||
# there. Otherwise chunk A would reappear although it was previously deleted.
|
||||
self.shadow_index = {}
|
||||
self._active_txn = False
|
||||
self.lock_wait = lock_wait
|
||||
|
|
Loading…
Add table
Reference in a new issue