Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

move array related freelist functions into own file #777

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

tjungblu
Copy link
Contributor

No description provided.

freelist.go Outdated
// write writes the page ids onto a freelist page. All free and pending ids are
// saved to disk since in the event of a program crash, all pending ids will
// become free.
func (f *freelist) write(p *common.Page) error {
Copy link
Member

Choose a reason for hiding this comment

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

Please keep the write method in freelist.go because it has nothing to do with array or hashmap freelistType.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

copied too eagerly, moved it back where it was

@tjungblu tjungblu force-pushed the freelist_first_array branch 2 times, most recently from 92ea985 to 39a1105 Compare June 26, 2024 15:21
Signed-off-by: Thomas Jungblut <tjungblu@redhat.com>
@tjungblu tjungblu force-pushed the freelist_first_array branch from 39a1105 to a4a52a2 Compare June 26, 2024 15:21
Copy link
Member

@ahrtr ahrtr left a comment

Choose a reason for hiding this comment

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

LGTM

Thanks

@ahrtr ahrtr merged commit 53977ba into etcd-io:main Jun 26, 2024
17 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Development

Successfully merging this pull request may close these issues.

3 participants