From e0ef4c5719c5fac4899a3771fbc33af8d310c5ed Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Sun, 17 Apr 2022 20:49:14 -0500 Subject: [PATCH] Fix syntax errors in verify worklist generation queries --- disk_jumble/src/disk_jumble/verify.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) -- 2.30.2