[pbs-devel] [PATCH proxmox-backup 1/3] fix missing block_in_place for remove_backup
Stefan Reiter
s.reiter at proxmox.com
Mon Oct 19 16:45:21 CEST 2020
Commit 9070d11f4c26 introduced this change for other call sites,
assuming it is correct, this one was missed.
Signed-off-by: Stefan Reiter <s.reiter at proxmox.com>
---
src/api2/backup.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/api2/backup.rs b/src/api2/backup.rs
index 8b2b0e1a..626c603f 100644
--- a/src/api2/backup.rs
+++ b/src/api2/backup.rs
@@ -216,7 +216,7 @@ async move {
(Ok(_), Err(err)) => {
env.log(format!("backup ended and finish failed: {}", err));
env.log("removing unfinished backup");
- env.remove_backup()?;
+ tools::runtime::block_in_place(|| env.remove_backup())?;
Err(err)
},
(Err(err), Err(_)) => {
--
2.20.1
More information about the pbs-devel
mailing list