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

Use LayerMap::replace in eviction #3544

Merged
merged 6 commits into from
Feb 7, 2023
Merged

Use LayerMap::replace in eviction #3544

merged 6 commits into from
Feb 7, 2023

Conversation

koivunej
Copy link
Member

@koivunej koivunej commented Feb 6, 2023

Follow-up to #3536, to actually use the new Debug in replacing the layers.

Turns out the two paths share a lot of handling of Replacement but didn't unify the two (need 3).

Related to #3486.

Base automatically changed from layer-debug to main February 6, 2023 12:21
@koivunej koivunej changed the title Replace layer Use LayerMap::replace in eviction Feb 6, 2023
@koivunej koivunej marked this pull request as ready for review February 6, 2023 12:23
@koivunej koivunej requested review from a team as code owners February 6, 2023 12:23
@koivunej koivunej requested review from knizhnik, SomeoneToIgnore, problame and a team and removed request for a team and knizhnik February 6, 2023 12:23
@koivunej
Copy link
Member Author

koivunej commented Feb 6, 2023

I think this is ready to be merged, it's a quite minor changing of the new endpoint, don't see any issues arising because of it.

Copy link
Contributor

@problame problame left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nits only, LGTM

pageserver/src/tenant/timeline.rs Outdated Show resolved Hide resolved
pageserver/src/tenant/timeline.rs Show resolved Hide resolved
@koivunej koivunej merged commit fcb905f into main Feb 7, 2023
@koivunej koivunej deleted the replace_layer branch February 7, 2023 09:08
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.

4 participants