From 044957ea153884db7a136489e11c317023da78c7 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Wed, 20 Apr 2022 13:13:10 -0500 Subject: [PATCH] Verify tool: remove failed blocks from both maps --- disk_jumble/src/disk_jumble/verify.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index e34494e..a76d918 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -366,7 +366,7 @@ def _do_verify(conn, disk_id: int, target_ranges: List[range], disk_file: io.Buf ) update diskjumble.disk_maps set - verified_map = coalesce(verified_map, int8multirange()) + new_passes, + verified_map = coalesce(verified_map, int8multirange()) + new_passes - new_fails, written_map = written_map - new_fails from new_passes, new_fails where disk_id = %(disk_id)s -- 2.30.2