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:
committed by
Dietmar Maurer
parent
f867ef9c4a
commit
7e25b9aaaa
@ -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,
|
||||
|
Reference in New Issue
Block a user