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

Move keyspace utils to inherent impls #7929

Merged
merged 6 commits into from
Jun 3, 2024
Merged

Move keyspace utils to inherent impls #7929

merged 6 commits into from
Jun 3, 2024

Conversation

arpad-m
Copy link
Member

@arpad-m arpad-m commented May 31, 2024

The keyspace utils like is_rel_size_key or is_rel_fsm_block_key and many others are free functions and have to be either imported separately or specified with the full path starting in pageserver_api::key::. This is less convenient than if these functions were just inherent impls.

Follow-up of #7890
Fixes #6438

@arpad-m arpad-m requested a review from koivunej May 31, 2024 21:53
@arpad-m arpad-m requested a review from a team as a code owner May 31, 2024 21:53
Copy link

github-actions bot commented May 31, 2024

3156 tests run: 3017 passed, 0 failed, 139 skipped (full report)


Flaky tests (1)

Postgres 16

  • test_timeline_deletion_with_files_stuck_in_upload_queue: debug

Code coverage* (full report)

  • functions: 31.4% (6530 of 20796 functions)
  • lines: 48.4% (50419 of 104276 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
fa09cb0 at 2024-06-02T01:05:24.732Z :recycle:

Copy link
Member

@koivunej koivunej left a comment

Choose a reason for hiding this comment

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

Even with the by-value this is a step up, thanks.

@arpad-m arpad-m merged commit acf0a11 into main Jun 3, 2024
63 of 64 checks passed
@arpad-m arpad-m deleted the arpad/key_impl branch June 3, 2024 14:18
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.

Move keyspace utils into Key impl
2 participants