Skip to content

remove unnecessary assert for external_socket_fd#329

Merged
var77 merged 1 commit intomainfrom
varik/fix-build
Aug 19, 2024
Merged

remove unnecessary assert for external_socket_fd#329
var77 merged 1 commit intomainfrom
varik/fix-build

Conversation

@var77
Copy link
Copy Markdown
Collaborator

@var77 var77 commented Aug 19, 2024

No description provided.

Copy link
Copy Markdown

@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
Copy Markdown

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
@var77 var77 deleted the varik/fix-build branch August 19, 2024 05:50
@codecov
Copy link
Copy Markdown

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