Skip to content

ImageStore: write state.json atomically - #835

Merged
crosbymichael merged 1 commit into
apple:mainfrom
ArnavReddy:atomic-state-json
Aug 10, 2026
Merged

ImageStore: write state.json atomically#835
crosbymichael merged 1 commit into
apple:mainfrom
ArnavReddy:atomic-state-json

Conversation

@ArnavReddy

Copy link
Copy Markdown
Contributor

save() encodes into state.json in place, so a concurrent reader can observe a truncated or garbled file.

@ArnavReddy
ArnavReddy marked this pull request as ready for review August 7, 2026 23:23
@crosbymichael
crosbymichael merged commit 55d1dc9 into apple:main Aug 10, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants