Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve comments in page cache, to explain the use of async. #63

Merged
merged 3 commits into from
Apr 24, 2021

Conversation

hlinnaka
Copy link
Contributor

We will likely refactor/rewrite this, see #58, but let's try to document the status quo first.

@hlinnaka hlinnaka force-pushed the page_cache-async-cleanup branch 8 times, most recently from 69d69b8 to e45b761 Compare April 24, 2021 11:30
It was only marked as async because it calls relsize_get(), but
relsize_get() will in fact never block when it's called with the max
LSN value, like put_wal_record() does. Refactor to avoid marking
put_wal_record() as 'async'.
Explain the mix of async and other functions in the page cache.
@hlinnaka hlinnaka force-pushed the page_cache-async-cleanup branch from e45b761 to 5e0cc89 Compare April 24, 2021 14:55
@hlinnaka hlinnaka merged commit 5e0cc89 into main Apr 24, 2021
@hlinnaka hlinnaka deleted the page_cache-async-cleanup branch April 24, 2021 14:55
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