mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-11-20 02:56:10 +00:00
7bde1ec9d4
meta.set and scheduler.set checked their caps in a transaction of the repository's own, which keeps check and write together on SQLite's single writer but not on Postgres, where two pool connections both read the same count. Both RPCs now run the capped write inside UnitOfWork.transactional, which takes the engine's write lock; the repository's transaction becomes a savepoint of it.