mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-11 01:41:57 -04:00
compact: also fix segments hints data for lost segment files
The code used to remove the missing segment only from "compact" hints, but we need to also remove it from "segments" hints.
This commit is contained in:
parent
b1bb3830fb
commit
d676ef7b3f
1 changed files with 2 additions and 1 deletions
|
|
@ -753,7 +753,8 @@ class LegacyRepository:
|
|||
for segment, freeable_space in sorted(self.compact.items()):
|
||||
if not self.io.segment_exists(segment):
|
||||
logger.warning("Segment %d not found, but listed in compaction data", segment)
|
||||
del self.compact[segment]
|
||||
self.compact.pop(segment, None)
|
||||
self.segments.pop(segment, None)
|
||||
pi.show()
|
||||
self._send_log()
|
||||
continue
|
||||
|
|
|
|||
Loading…
Reference in a new issue