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

*: refactors for value separation #4357

Merged
merged 3 commits into from
Mar 3, 2025
Merged

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Mar 2, 2025

The value length is encoded as a uint32, but the ValueFetcher's Fetch method expected a signed int32.

The value length is encoded as a uint32, but the ValueFetcher's Fetch method
expected a signed int32.
@jbowens jbowens requested a review from a team as a code owner March 2, 2025 18:27
@jbowens jbowens requested a review from RaduBerinde March 2, 2025 18:27
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jbowens jbowens changed the title internal/base: consistently use uint32 for value length *: refactors for value separation Mar 2, 2025
jbowens added 2 commits March 2, 2025 23:15
Clarify the naming around value prefixes and value handles for existing value
blocks, so they're not confusing with the introduction of value handles
pointing into blob files.
Factor out logic to decode a block handle from a value block index into a
helper, DecodeBlockHandleFromIndex. Today this is only used internally within
the valblk package. Future work will call DecodeBlockHandleFromIndex when
looking up blocks within external blob files.
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.

Reviewed 1 of 3 files at r1.
Reviewable status: 1 of 14 files reviewed, all discussions resolved

@jbowens
Copy link
Collaborator Author

jbowens commented Mar 3, 2025

TFTR!

@jbowens jbowens merged commit a905f47 into cockroachdb:master Mar 3, 2025
23 checks passed
@jbowens jbowens deleted the valLen-uint32 branch March 3, 2025 18:23
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