Skip to content

Avoid no-op recency migration repair writes#31638

Draft
zanie-oai wants to merge 1 commit into
mainfrom
zb/avoid-noop-recency-repair-write
Draft

Avoid no-op recency migration repair writes#31638
zanie-oai wants to merge 1 commit into
mainfrom
zb/avoid-noop-recency-repair-write

Conversation

@zanie-oai

Copy link
Copy Markdown
Contributor

Following #26420, avoid acquiring SQLite's writer slot when the legacy recency-migration repair has nothing to do. The repair now checks the applied migration history with a read-only query and only issues the guarded update for the exact legacy version-38/checksum state. This prevents normal state-runtime startup from waiting behind an unrelated writer while preserving the compatibility repair.

Includes regression coverage with a competing BEGIN IMMEDIATE writer. just test -p codex-state passes all 153 tests; just fix -p codex-state and just fmt also pass.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant