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

disk index: correctly keep track of count during batch add #31133

Merged
merged 1 commit into from
Apr 10, 2023

Conversation

jeffwashington
Copy link
Contributor

@jeffwashington jeffwashington commented Apr 10, 2023

Problem

#31094 failed to update the count in the disk index after batch insertion.

Symptom of failure was panic! from Vec::with_capacity, trying to allocate too large of a vec based on an incorrect negative count.

Summary of Changes

Update the count correctly.

Fixes #

Copy link
Contributor

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

lgtm

@jeffwashington jeffwashington merged commit 4f0adcd into solana-labs:master Apr 10, 2023
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