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

fix bug for aligned memory allocation #26

Merged
merged 1 commit into from
Sep 14, 2024
Merged

fix bug for aligned memory allocation #26

merged 1 commit into from
Sep 14, 2024

Conversation

inabao
Copy link
Collaborator

@inabao inabao commented Sep 12, 2024

No description provided.

Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
Copy link
Collaborator

@jiaweizone jiaweizone left a comment

Choose a reason for hiding this comment

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

LGTM

medoid_read[0].offset = NODE_SECTOR_NO(medoid) * sector_len;
reader->read(medoid_read);

// all data about medoid
char *medoid_node_buf = OFFSET_TO_NODE(medoid_buf, medoid);
char *medoid_node_buf = OFFSET_TO_NODE(medoid_buf.get(), medoid);
Copy link
Collaborator

Choose a reason for hiding this comment

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

minor: may impact performance

Copy link
Collaborator

@wxyucs wxyucs left a comment

Choose a reason for hiding this comment

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

lgtm

@inabao inabao merged commit 7f94a27 into main Sep 14, 2024
3 checks passed
@inabao inabao deleted the fix-bug branch September 20, 2024 06:42
inabao added a commit that referenced this pull request Oct 16, 2024
Signed-off-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
Co-authored-by: jinjiabao.jjb <jinjiabao.jjb@antgroup.com>
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