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

Catch panic from bbolt open connection #895

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Conversation

gandarez
Copy link
Member

@gandarez gandarez commented Aug 7, 2023

This PR catches any panic from bolt.Open and log it as error or warning depending the context where it's called. This is a way to avoid breaking the cli when there's a corrupted bolt file. It also fixes few typos.

Closes #848

@gandarez gandarez self-assigned this Aug 7, 2023
pkg/offline/error.go Outdated Show resolved Hide resolved
@alanhamlett
Copy link
Member

Ready to merge!

@gandarez gandarez merged commit 14cf01a into develop Aug 9, 2023
17 checks passed
@gandarez gandarez deleted the bugfix/panic-bbolt branch August 9, 2023 22:59
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.

panic: invalid freelist page: 0, page type is unknown<00>
2 participants