From: Jakob Cornell Date: Fri, 22 Apr 2022 06:17:33 +0000 (-0500) Subject: Verify tool: fix cursor reuse bug X-Git-Url: https://jcornell.net/gitweb/gitweb.cgi?a=commitdiff_plain;h=dc8050a91fd49fc34680828268c66af18ef97dcb;p=eros.git Verify tool: fix cursor reuse bug --- 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( """