mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-08-04 18:18:03 +00:00
make find_cell and process_overflow_page reentrant
This commit is contained in:
parent
e97227ccb9
commit
d688cfd547
2 changed files with 130 additions and 72 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue