verify: also fail on server shutdown

This commit is contained in:
Dietmar Maurer 2020-09-02 09:50:17 +02:00
parent c6e07769e9
commit deef63699e
1 changed files with 2 additions and 0 deletions

View File

@ -115,6 +115,7 @@ fn verify_index_chunks(
loop {
worker.fail_on_abort()?;
crate::tools::fail_on_shutdown()?;
let (chunk, digest, size) = match chunk_channel.recv() {
Ok(tuple) => tuple,
@ -281,6 +282,7 @@ pub fn verify_backup_dir(
});
worker.fail_on_abort()?;
crate::tools::fail_on_shutdown()?;
if let Err(err) = result {
worker.log(format!("verify {}:{}/{} failed: {}", datastore.name(), backup_dir, info.filename, err));