Skip to content

Unsized node bug fix#103

Merged
Handy-caT merged 5 commits intomainfrom
unsized-node-check-again
Aug 7, 2025
Merged

Unsized node bug fix#103
Handy-caT merged 5 commits intomainfrom
unsized-node-check-again

Conversation

@Handy-caT
Copy link
Copy Markdown
Collaborator

No description provided.

@Handy-caT Handy-caT merged commit a519313 into main Aug 7, 2025
1 of 3 checks passed
@Handy-caT Handy-caT deleted the unsized-node-check-again branch August 7, 2025 22:39
.last()
.expect("should not rebuild on empty node")
.aligned_size();
self.length += UNSIZED_HEADER_LENGTH as usize;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why are two operations instead of a single assignment?

.expect("should not rebuild on empty node")
.aligned_size();
self.length += UNSIZED_HEADER_LENGTH as usize;
for value in self.inner.iter() {
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why does the size contains the last item twice?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Node's id is stored separately. This unsized node logic is needed to mirror state of UnsizedPage in data bucket. And this page stores node id as one field, utility fields, slots and inner node values.

@Handy-caT Handy-caT self-assigned this Aug 11, 2025
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