prune: respect snapshot flock

A snapshot that's currently being read can still appear in the prune
list, but should not be removed.

Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Stefan Reiter 2020-10-14 14:16:29 +02:00 committed by Dietmar Maurer
parent 6cd8496008
commit 836c4a278d
1 changed files with 1 additions and 1 deletions

View File

@ -727,7 +727,7 @@ fn prune(
}));
if !(dry_run || keep) {
datastore.remove_backup_dir(&info.backup_dir, true)?;
datastore.remove_backup_dir(&info.backup_dir, false)?;
}
}