]> git.proxmox.com Git - proxmox-backup.git/commitdiff
prune: respect snapshot flock
authorStefan Reiter <s.reiter@proxmox.com>
Wed, 14 Oct 2020 12:16:29 +0000 (14:16 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 15 Oct 2020 05:09:34 +0000 (07:09 +0200)
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>
src/api2/admin/datastore.rs

index 405a3c246ed0332bdf261ee966fd0b0b59899ecc..79add1739d65bf6d57a3236d2943b58736c4884c 100644 (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)?;
             }
         }