refactor(backups): also batch the forget_all_snapshots command

pull/73/head
Houkime 2023-11-17 14:48:41 +00:00
parent 615e962965
commit 25378273eb
1 changed files with 1 additions and 2 deletions

View File

@ -629,8 +629,7 @@ class Backups:
"""deliberately erase all snapshots we made""" """deliberately erase all snapshots we made"""
# there is no dedicated optimized command for this, # there is no dedicated optimized command for this,
# but maybe we can have a multi-erase # but maybe we can have a multi-erase
for snapshot in Backups.get_all_snapshots(): Backups.forget_snapshots(Backups.get_all_snapshots())
Backups.forget_snapshot(snapshot)
@staticmethod @staticmethod
def force_snapshot_cache_reload() -> None: def force_snapshot_cache_reload() -> None: