Jussi Saurio
|
66c4b44c55
|
pager: call rollback() after ending txn so that read lock info is not lost when ending txn
|
2025-07-30 17:21:19 +03:00 |
|
Jussi Saurio
|
7b1f04dc5e
|
pager: only ROLLBACK your own transaction, not if someone else is writing
|
2025-07-30 17:00:38 +03:00 |
|
PThorpe92
|
e7eda25802
|
Make sure to end read tx on error of wal insert begin API
|
2025-07-30 09:44:29 -04:00 |
|
Jussi Saurio
|
b1aa13375d
|
call pager.end_tx() everywhere instead of pager.rollback()
|
2025-07-30 16:39:38 +03:00 |
|
Jussi Saurio
|
975b7b5434
|
wal: fix test incorrect expectation
|
2025-07-30 15:53:13 +03:00 |
|
Jussi Saurio
|
af660326d8
|
finish_append_frames_commit: revert bumping readmark incorrectly
|
2025-07-30 15:53:01 +03:00 |
|
Jussi Saurio
|
d4043595cd
|
test/fuzz/tx-isolation: clippy
|
2025-07-30 15:02:16 +03:00 |
|
Jussi Saurio
|
43d1321033
|
ignore completion result of self.read_frame
|
2025-07-30 14:58:03 +03:00 |
|
Jussi Saurio
|
338cab3f28
|
End read transaction when Schema::make_from_btree fails
|
2025-07-30 14:58:03 +03:00 |
|
Jussi Saurio
|
fd5e73f038
|
op_transaction: read tx must be ended in all cases if begin_write_tx fails
|
2025-07-30 14:58:03 +03:00 |
|
Jussi Saurio
|
9a63425b43
|
clippy
|
2025-07-30 14:58:03 +03:00 |
|
Jussi Saurio
|
772b71963e
|
finish_append_frames_commit: properly increase readmark on commit
|
2025-07-30 14:58:03 +03:00 |
|
Jussi Saurio
|
1562c1df10
|
begin_read_tx: better assertion failure message
|
2025-07-30 14:58:03 +03:00 |
|
Jussi Saurio
|
d5b0d284e6
|
bindings/rust: add tx isolation fuzz test
|
2025-07-30 14:58:03 +03:00 |
|
PThorpe92
|
4dc15492d8
|
Integrate changes from tx isolation commits from @jussisaurio
|
2025-07-30 14:10:12 +03:00 |
|
PThorpe92
|
2c3a9fe5ef
|
Finish wal transaction handling and add more wal and chkpt testing
|
2025-07-30 14:10:10 +03:00 |
|
PThorpe92
|
8806b77d26
|
Clear snapshot and readmark/lock index flags on failure
|
2025-07-30 14:09:18 +03:00 |
|
PThorpe92
|
d702e6a80c
|
Polish checkpointing and fix tests, add documentation
|
2025-07-30 14:08:53 +03:00 |
|
PThorpe92
|
8ec99a9143
|
Remove assert for !NO_LOCK_HELD, properly handle writing header if reset
|
2025-07-30 14:08:51 +03:00 |
|
PThorpe92
|
529cc14e29
|
Fix wal tests remove unwrap from previous Result return val
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
7640535ba4
|
Fix transaction read0 shortcut in WAL and track whether we have snapshot
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
ff1987a45c
|
Temporarily remove optimization for new read tx to grab read mark 0 and skip db file
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
318bfa9590
|
Change incorrect comments and rename guard
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
1490a586b1
|
Apply suggestions/fixes and add extensive comments to wal chkpt
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
3e75444388
|
Remove panic in cacheflush io.block in pager now that checkpoitns can return busy
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
5c1dbd1a9f
|
Remove unused import
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
3db72cf111
|
Just forget Full checkpoint mode for now, comment out compat test
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
49f90980d4
|
Create new header after truncation chkpt
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
b214c3dfc8
|
Add diff chkpt modes to sqlite3 api, finish checkpoint logic and add tests
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
eaa6f99fa8
|
Hold and ensure release of proper locks if we trunc the db file post-checkpoint
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
8ca37b71b6
|
Ensure we properly hold and release read locks in log restart method and fix tests
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
9b7e5ed292
|
Trunc db file after backfilling everything in calling method
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
436747536c
|
Add integration test for truncate checkpointing wal
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
7643ef97a6
|
Pass checkpoint mode from sqlite3 c api argument
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
f4becd1296
|
Allow using !passive checkpoint methods in pragma wal_checkpoint
|
2025-07-30 14:08:33 +03:00 |
|
PThorpe92
|
1a9b7ef76e
|
Add support for truncate, restart and full checkpointing methods
|
2025-07-30 14:08:31 +03:00 |
|
PThorpe92
|
6b71efa5b6
|
Accept mode argument for checkpoint in connection api
|
2025-07-30 14:07:20 +03:00 |
|
PThorpe92
|
f78c6af51a
|
Display error when unable to open file from within cli
|
2025-07-30 14:07:20 +03:00 |
|
PThorpe92
|
441319e774
|
Fix todo! in vfs IO preventing write wal header from using wait_for_completion
|
2025-07-30 14:07:19 +03:00 |
|
PThorpe92
|
ad286bb873
|
Use new wait_for_completion for sync IO
|
2025-07-30 14:07:04 +03:00 |
|
PThorpe92
|
9c75872827
|
Make writing wal header able to be sync
|
2025-07-30 14:05:18 +03:00 |
|
PThorpe92
|
dcf346b9b0
|
Update apparently very old branch to new api
|
2025-07-30 13:48:05 +03:00 |
|
PThorpe92
|
cfbe9d5b9e
|
Fix clippy error casting same size
|
2025-07-30 13:48:05 +03:00 |
|
PThorpe92
|
f22313575f
|
Fix windows method to take usize in place of u64
|
2025-07-30 13:48:05 +03:00 |
|
PThorpe92
|
edbc29e2a6
|
Add restart_header and truncate for WAL and tests to prep for truncate checkpoint mode
|
2025-07-30 13:48:05 +03:00 |
|
PThorpe92
|
272a63b562
|
Fix truncate impl in JS bindings
|
2025-07-30 13:48:05 +03:00 |
|
PThorpe92
|
3be8bb374d
|
Use usize for truncate method in place of u64
|
2025-07-30 13:48:05 +03:00 |
|
PThorpe92
|
52f63b2af0
|
Impl truncate for simulator
|
2025-07-30 13:48:05 +03:00 |
|
PThorpe92
|
bbb47fd58a
|
Add truncate method to wasm bindings module
|
2025-07-30 13:48:05 +03:00 |
|
PThorpe92
|
ce1897cb4a
|
Impl truncate for the remainder of IO modules
|
2025-07-30 13:48:05 +03:00 |
|