From: Jakob Cornell Date: Wed, 20 Apr 2022 18:11:16 +0000 (-0500) Subject: Fix destructive verify output bug X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=67904f6ce98af3c0b6cbf8f3a7253edbbd890444;p=eros.git Fix destructive verify output bug --- diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index 02a3368..e34494e 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -357,11 +357,11 @@ def _do_verify(conn, disk_id: int, target_ranges: List[range], disk_file: io.Buf """ with new_passes as ( - select range_agg(range) as new_passes + select coalesce(range_agg(range), int8multirange()) as new_passes from unnest(%(pass_ranges)s::int8range[]) as range ), new_fails as ( - select range_agg(range) as new_fails + select coalesce(range_agg(range), int8multirange()) as new_fails from unnest(%(fail_ranges)s::int8range[]) as range ) update diskjumble.disk_maps