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

remove unnecessary assert for external_socket_fd #329

Merged
merged 1 commit into from
Aug 19, 2024
Merged

Conversation

var77
Copy link
Collaborator

@var77 var77 commented Aug 19, 2024

No description provided.

Copy link

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

PR Summary

Removed an unnecessary assertion for external_socket_fd in the HNSW index building process.

  • Simplified code in src/hnsw/build.c by removing a redundant check for external_socket_fd
  • This change streamlines the external indexing process without affecting functionality
  • Potential impact on error handling and debugging should be considered
  • Ensure that the removal of this assertion doesn't introduce any unintended side effects in edge cases
  • Review related external indexing and socket operation code to confirm this change is safe

1 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings

Comment on lines 526 to 529
&opts,
buildstate,
estimated_row_count);
assert(buildstate->external_client_fd > 0);
} else {
Copy link

Choose a reason for hiding this comment

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

info: Removed assertion for external_client_fd. Ensure this doesn't affect error handling or debugging capabilities.

@var77 var77 merged commit 96f2c24 into main Aug 19, 2024
40 of 43 checks passed
@var77 var77 deleted the varik/fix-build branch August 19, 2024 05:50
Copy link

codecov bot commented Aug 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

📢 Thoughts on this report? Let us know!

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.

1 participant