]> git.proxmox.com Git - proxmox-backup.git/commitdiff
src/backup/verify.rs: do not stop on server shutdown
authorDietmar Maurer <dietmar@proxmox.com>
Fri, 26 Jun 2020 07:45:59 +0000 (09:45 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 26 Jun 2020 07:45:59 +0000 (09:45 +0200)
This is a read-only task, so there is no need to stop.

src/backup/verify.rs

index 77c58b0c52de02379a0ecd5b12dd1dc68401b724..ac21de620b0d682fcf15cf7f0f2f2ab6df7f1d26 100644 (file)
@@ -43,7 +43,6 @@ fn verify_index_chunks(
     for pos in 0..index.index_count() {
 
         worker.fail_on_abort()?;
-        crate::tools::fail_on_shutdown()?;
 
         let info = index.chunk_info(pos).unwrap();
         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()?;
-        crate::tools::fail_on_shutdown()?;
 
         if let Err(err) = result {
             worker.log(format!("verify {}:{}/{} failed: {}", datastore.name(), backup_dir, info.filename, err));