From 67904f6ce98af3c0b6cbf8f3a7253edbbd890444 Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Wed, 20 Apr 2022 13:11:16 -0500 Subject: [PATCH] Fix destructive verify output bug --- disk_jumble/src/disk_jumble/verify.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2