Verify tool: remove failed blocks from both maps
authorJakob Cornell <jakob+gpg@jcornell.net>
Wed, 20 Apr 2022 18:13:10 +0000 (13:13 -0500)
committerJakob Cornell <jakob+gpg@jcornell.net>
Wed, 20 Apr 2022 18:13:10 +0000 (13:13 -0500)
disk_jumble/src/disk_jumble/verify.py

index e34494e98cf796e056b3ef99af83d056fc1de795..a76d9180e0f49fc4d30cfa2b68250dc5b4bce84b 100644 (file)
@@ -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