verify: use same progress as pull

percentage of verified groups, interpolating based on snapshot count
within the group. in most cases, this will also be closer to 'real'
progress since added snapshots (those which will be verified) in active
backup groups will be roughly evenly distributed, while number of total
snapshots per group will be heavily skewed towards those groups which
have existed the longest, even though most of those old snapshots will
only be re-verified very infrequently.

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler authored and Dietmar Maurer committed 2020-12-01 06:22:55 +01:00
1 parent f867ef9c4a
commit 7e25b9aaaa
2 files changed
+28 -35

No files matched your search

+2 -2
View File
@@ -687,12 +687,12 @@ pub fn verify(
}
res
} else if let Some(backup_group) = backup_group {
let (_count, failed_dirs) = verify_backup_group(
let failed_dirs = verify_backup_group(
datastore,
&backup_group,
verified_chunks,
corrupt_chunks,
None,
&mut StoreProgress::new(1),
worker.clone(),
worker.upid(),
None,