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:
parent
6cd8496008
commit
836c4a278d
|
@ -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)?;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue