Skip to content

lock once for metadata and body in separate body cache - #465

Open
ogalland-tob wants to merge 1 commit into
psf:masterfrom
trail-of-forks:ptp/fix-4
Open

lock once for metadata and body in separate body cache#465
ogalland-tob wants to merge 1 commit into
psf:masterfrom
trail-of-forks:ptp/fix-4

Conversation

@ogalland-tob

Copy link
Copy Markdown
Contributor

SeparateBodyFileCache replaces an entry's metadata and body files separately. A concurrent read can combine metadata from one update with the body from another and return the mixed-generation entry as a valid cached response.

This PR introduces atomic get/set_with_body operations to prevent the race condition, as well as relevant unit tests.

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.

1 participant