From: Jakob Cornell Date: Mon, 18 Apr 2022 01:49:14 +0000 (-0500) Subject: Fix syntax errors in verify worklist generation queries X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=e0ef4c5719c5fac4899a3771fbc33af8d310c5ed;p=eros.git Fix syntax errors in verify worklist generation queries --- diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index 45a43d5..5f37c16 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -135,7 +135,7 @@ def _get_v1_worklist(conn, disk_id: int, block_ranges: List[NumericRange]) -> Li ((piece_num + 1) * %(piece_length)s - entity_offset) / %(block_size)s + lower(disk_blocks) ) as use_blocks, crypt_key - from relevant_slab join targeted_piece + from relevant_slab cross join targeted_piece ) select piece_num, use_blocks, crypt_key from out where not isempty(use_blocks) @@ -197,8 +197,8 @@ def _get_v2_worklist(conn, disk_id: int, block_ranges: List[NumericRange]) -> Li entity_id, entity.length, entity_blocks, - slab_plus.disk_blocks - entity_blocks * elh.block_range as check_erange, + slab_plus.disk_blocks, + entity_blocks * elh.block_range as check_erange from entityv2_leaf_hashes elh join slab_plus using (entity_id)