make find_cell and process_overflow_page reentrant

This commit is contained in:
pedrocarlo 2025-05-31 23:24:27 -03:00
parent e97227ccb9
commit d688cfd547
2 changed files with 130 additions and 72 deletions

View file

@ -17,10 +17,14 @@ def stub_memory_test(
vals: int = 100,
blobs: bool = True,
):
raise
# zero_blob_size = 1024 **2
zero_blob = "0" * blob_size * 2
# vals = 100
big_stmt = ["CREATE TABLE temp (t1 BLOB, t2 INTEGER);", "CREATE INDEX temp_index ON temp(t1);"]
big_stmt = [
"CREATE TABLE temp (t1 BLOB, t2 INTEGER);",
"CREATE INDEX temp_index ON temp(t1);",
]
big_stmt = big_stmt + [
f"INSERT INTO temp (t1) VALUES (zeroblob({blob_size}));"
if i % 2 == 0 and blobs