Home

dev / openkara

publicthedavidweng/OpenKara· sync paused
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(remote): per-library durable queue for shared working DB (#151)

2 months ago

12261a8
Authored
Davy7/21/2026, 11:14:48 AM
Close remaining #175 P0/P1 gaps around shared openkara.db semantics:

- Merge ALL Pending/RetryWait change sets (including future RetryWait) and
  inherit max next_attempt_at_ms so the library waits instead of partial freeze
- Prefer CAS-boundary ops in scheduling; reconcile them before any new freeze
- record_completed is one control TX: Complete + Dirty/Clean based on remaining
  non-terminal publish ops and working DB digest match
- Startup repairs Dirty/Publishing after Completed when no outstanding intent
- Mutation prepare/record take explicit library_id (no active re-resolve under lock)

Parent87d14d5

4 files changed
  • src-tauri/src/remote/executor.rs+103−19
  • src-tauri/src/remote/mutation.rs+60−19
  • src-tauri/src/remote/recovery.rs+186−32
  • src-tauri/src/remote/sync/publish.rs+195−29