refactor(backups): also batch the forget_all_snapshots command

This commit is contained in:
Houkime 2023-11-17 14:48:41 +00:00 committed by Inex Code
parent 409d4fc2bb
commit 35a7497855
1 changed files with 1 additions and 2 deletions

View File

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