Skip to content

Handle symdb partition initialization error #2519

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

Merged
merged 2 commits into from
Oct 13, 2023

Conversation

kolesnikovae
Copy link
Collaborator

No description provided.

@kolesnikovae kolesnikovae requested a review from a team as a code owner October 11, 2023 10:26
Copy link
Contributor

@simonswine simonswine left a comment

Choose a reason for hiding this comment

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

LGTM

Comment on lines 353 to 358
defer func() {
if err != nil {
c.r--
}
c.m.Unlock()
}()
Copy link
Contributor

Choose a reason for hiding this comment

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

Nil: When an error happens in fetch, the next call to fetch will silently return nil.

This is not a problem, with the way the fetch is used in an errgroup today, but might become one in the future.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Refactored the reference counter to a separate package so this does not look so ugly

@kolesnikovae kolesnikovae merged commit e0d857b into main Oct 13, 2023
@kolesnikovae kolesnikovae deleted the fix/sym-resolve-error-handling branch October 13, 2023 01:18
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.

2 participants