From 836c4a278dabf97b57fefa199b672d60afe5abdf Mon Sep 17 00:00:00 2001 From: Stefan Reiter Date: Wed, 14 Oct 2020 14:16:29 +0200 Subject: [PATCH] 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 --- src/api2/admin/datastore.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api2/admin/datastore.rs b/src/api2/admin/datastore.rs index 405a3c24..79add173 100644 --- a/src/api2/admin/datastore.rs +++ b/src/api2/admin/datastore.rs @@ -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)?; } }