Browse Source

repository: fix compactable space computation for empty segment file

Thomas Waldmann 3 năm trước cách đây
mục cha
commit
57e0724108
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/borg/repository.py

+ 1 - 1
src/borg/repository.py

@@ -930,7 +930,7 @@ class Repository:
                 else:
                     report(msg)
         if self.segments[segment] == 0:
-            self.compact[segment] += self.io.segment_size(segment)
+            self.compact[segment] = self.io.segment_size(segment)
 
     def _rebuild_sparse(self, segment):
         """Rebuild sparse bytes count for a single segment relative to the current index."""