Simpl-Resultat/src-tauri/src
le king fu 5f84f69b0f test(db): pin the write lock held while the new pool opens (#543)
The review of PR #544 (comment 33133) left one mutation green: read the
plugin's options under the read lock of DbInstances, open the new pool
without any lock, then take the write lock for the insert only. A
statement of the plugin (execute, select) arriving while the new pool
opens would then find the plugin's pool instead of waiting for the swap.

The new test polls the swap once, so that it waits in the opening of the
new pool, then looks the pool up as the plugin's execute does: it must
wait for the swap and find the pool of one connection.

Refs #543

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 01:18:43 +00:00
..
commands test(db): pin the write lock held while the new pool opens (#543) 2026-11-14 01:18:43 +00:00
database style(profiles): rewrap the sync comment of backup_to 2026-10-12 20:27:33 -04:00
lib.rs fix(db): run every statement on one connection of the plugin's pool (#543) 2026-11-14 01:18:43 +00:00
main.rs Initial project scaffold: Tauri v2 + React + TypeScript + TailwindCSS v4 2026-02-07 11:05:11 +00:00