src/backup/verify.rs: do not stop on server shutdown

This is a read-only task, so there is no need to stop.
This commit is contained in:
Dietmar Maurer 2020-06-26 09:45:59 +02:00
parent f6de2c7359
commit 817bcda848
1 changed files with 0 additions and 2 deletions

View File

@ -43,7 +43,6 @@ fn verify_index_chunks(
for pos in 0..index.index_count() { for pos in 0..index.index_count() {
worker.fail_on_abort()?; worker.fail_on_abort()?;
crate::tools::fail_on_shutdown()?;
let info = index.chunk_info(pos).unwrap(); let info = index.chunk_info(pos).unwrap();
let size = info.range.end - info.range.start; let size = info.range.end - info.range.start;
@ -124,7 +123,6 @@ pub fn verify_backup_dir(datastore: &DataStore, backup_dir: &BackupDir, worker:
}); });
worker.fail_on_abort()?; worker.fail_on_abort()?;
crate::tools::fail_on_shutdown()?;
if let Err(err) = result { if let Err(err) = result {
worker.log(format!("verify {}:{}/{} failed: {}", datastore.name(), backup_dir, info.filename, err)); worker.log(format!("verify {}:{}/{} failed: {}", datastore.name(), backup_dir, info.filename, err));