Skip to content

Commit 162bac5

Browse files
committed
renaem pack_compact_threshold to pack_auto_compact_threshold
1 parent 6a2cef3 commit 162bac5

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

prime_backup/action/delete_chunk_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def run(self, *, session: Optional[DbSession] = None) -> ChunkListSummary:
7272
pack_ids_to_compact = CollectPacksForCompactStep(
7373
session,
7474
pack_ids=affected_pack_ids,
75-
threshold=self.config.backup.pack_compact_threshold,
75+
threshold=self.config.backup.pack_auto_compact_threshold,
7676
raise_if_not_found=False,
7777
).run().pack_ids
7878
pack_ids_to_compact_set = set(pack_ids_to_compact)

prime_backup/action/migrate_compress_method_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def run(self) -> SizeDiff:
291291
pack_ids_to_compact = CollectPacksForCompactStep(
292292
session,
293293
pack_ids=self.__old_pack_ids,
294-
threshold=self.config.backup.pack_compact_threshold,
294+
threshold=self.config.backup.pack_auto_compact_threshold,
295295
raise_if_not_found=False,
296296
).run().pack_ids
297297
if len(pack_ids_to_compact) > 0:

prime_backup/config/backup_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ class BackupConfig(Serializable):
7070

7171
# Advanced
7272
fileset_allocate_lookback_count: int = 2
73-
pack_compact_threshold: float = 0.5
73+
pack_auto_compact_threshold: float = 0.5
7474
pack_prune_compact_threshold: float = 0.8
7575

7676
def get_compress_method_from_size(self, file_size: int, *, compress_method_override: Optional[CompressMethod] = None) -> CompressMethod:

0 commit comments

Comments
 (0)