off by one
authorAnders Cornell <anders@acorn.pw>
Wed, 20 Apr 2022 19:17:14 +0000 (15:17 -0400)
committerAnders Cornell <anders@acorn.pw>
Wed, 20 Apr 2022 19:17:14 +0000 (15:17 -0400)
disk_jumble/src/disk_jumble/verify.py

index a76d9180e0f49fc4d30cfa2b68250dc5b4bce84b..b5217f4aee842060da3dcd91b28a993833ad4b60 100644 (file)
@@ -246,7 +246,7 @@ def _get_v2_worklist(conn, disk_id: int, target_ranges: List[NumericRange]) -> L
                                                ) as block,
                                                substring(
                                                        hashes,
-                                                       generate_series(lower(check_erange), upper(check_erange) - 1)::integer * 32,
+                                                       generate_series(lower(check_erange), upper(check_erange) - 1)::integer * 32 + 1,
                                                        32
                                                ) as hash,
                                                crypt_key