X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=src%2Fbackup%2Fchunk_store.rs;h=139c9fd2dc0f18a8a6b8a34c393c7b1873451c7e;hb=99641a6bbbb30ba67c36d4850c4c1d6ddd3e8a79;hp=7ea0cb5f29ee5ba365077de6cd6cdbfabed4686b;hpb=74f7240b8d76119106f65c21748b522bf12a8e07;p=proxmox-backup.git diff --git a/src/backup/chunk_store.rs b/src/backup/chunk_store.rs index 7ea0cb5f..139c9fd2 100644 --- a/src/backup/chunk_store.rs +++ b/src/backup/chunk_store.rs @@ -291,7 +291,7 @@ impl ChunkStore { &self, oldest_writer: i64, status: &mut GarbageCollectionStatus, - worker: Arc, + worker: &WorkerTask, ) -> Result<(), Error> { use nix::sys::stat::fstatat; @@ -314,6 +314,7 @@ impl ChunkStore { worker.log(format!("percentage done: {}, chunk count: {}", percentage, chunk_count)); } + worker.fail_on_abort()?; tools::fail_on_shutdown()?; let (dirfd, entry) = match entry {