From dc8050a91fd49fc34680828268c66af18ef97dcb Mon Sep 17 00:00:00 2001 From: Jakob Cornell Date: Fri, 22 Apr 2022 01:17:33 -0500 Subject: [PATCH] Verify tool: fix cursor reuse bug --- disk_jumble/src/disk_jumble/verify.py | 1 + 1 file changed, 1 insertion(+) diff --git a/disk_jumble/src/disk_jumble/verify.py b/disk_jumble/src/disk_jumble/verify.py index c52ebbb..4cd7939 100644 --- a/disk_jumble/src/disk_jumble/verify.py +++ b/disk_jumble/src/disk_jumble/verify.py @@ -129,6 +129,7 @@ def _get_v1_worklist(conn, disk_id: int, target_ranges: List[NumericRange]) -> L assert i.piece_length % BLOCK_SIZE == 0, f"entity {i.id.hex()} has invalid piece length" runs = [] + cursor = conn.cursor() for info in infos: cursor.execute( """ -- 2.30.2