mirror of
https://github.com/tursodatabase/limbo.git
synced 2025-12-23 08:21:09 +00:00
Right now turso can panic with various asserts if 2 or more write statements will be executed over single connection concurrently: ``` thread 'query_processing::test_write_path::api_misuse' panicked at core/storage/pager.rs:776:9: subjournal offset should be 0 ``` This PR adds explicit guard for subjournal access which will return `Busy` for the operation internally and lead to wait condition for the statement until subjournal ownership will be released and can be re- acquired again. Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #4110 |
||
|---|---|---|
| .. | ||
| fuzz | ||
| integration | ||
| Cargo.toml | ||
| lib.rs | ||
| README.md | ||
Integration and regression test suite.
# run all tests
cargo test
# run individual test
cargo test test_sequential_write -- --nocapture