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

cache: misc tiny cleanups #4149

Merged
merged 1 commit into from
Nov 11, 2024
Merged

Conversation

sumeerbhola
Copy link
Collaborator

  • Removed entry.peekValue, since there was existing code in clockpro.go that directly accesses e.val, and the method indirection hinders readability.
  • Updated the comment about cgo pointer rules since entry no longer points to shard.
  • Removed the comment about shard size which suggested that all the blocks of a file are mapped to the same shard, since that is not true.
  • Added an assertion when a test entry has a value being set.

- Removed entry.peekValue, since there was existing code in clockpro.go
  that directly accesses e.val, and the method indirection hinders
  readability.
- Updated the comment about cgo pointer rules since entry no longer points
  to shard.
- Removed the comment about shard size which suggested that all the blocks
  of a file are mapped to the same shard, since that is not true.
- Added an assertion when a test entry has a value being set.
@sumeerbhola sumeerbhola requested a review from a team as a code owner November 8, 2024 21:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Member

@RaduBerinde RaduBerinde left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @sumeerbhola)

@sumeerbhola
Copy link
Collaborator Author

TFTR!

@sumeerbhola sumeerbhola merged commit a5939f4 into cockroachdb:master Nov 11, 2024
23 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