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 inode operations(read/write) into package internal/common #425

Merged
merged 1 commit into from
Mar 15, 2023
Merged

move inode operations(read/write) into package internal/common #425

merged 1 commit into from
Mar 15, 2023

Conversation

ahrtr
Copy link
Member

@ahrtr ahrtr commented Mar 15, 2023

Extracted from #417. It should can be reviewed & merged separately.

@ahrtr ahrtr added this to the v1.4.0 milestone Mar 15, 2023
copy(b[l:], item.Value())
}

return uint32(off)
Copy link
Member

Choose a reason for hiding this comment

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

Looks like offset is not used.

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, it isn't used so far. I think it still makes sense to return an offset, so that the caller knows how many bytes are consumed, and how many free space in the page.

@ahrtr ahrtr merged commit 87a1781 into etcd-io:master Mar 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants