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

bdb: specify freelist options by default #634

Merged
merged 2 commits into from
Sep 4, 2019

Conversation

Crypt-iQ
Copy link
Contributor

@Crypt-iQ Crypt-iQ commented Aug 2, 2019

Related to lightningnetwork/lnd#3278
I did see a number of rollbacks occurring on initial startup, but I will need to see if I can recreate this. Under rollbacks, the freelist must be built again temporarily which is burdensome with large freelists. Will report back.

Edit: Should be fine to proceed with.

This commit updates the bbolt dependency to v1.3.3 so that we
can use the NoFreelistSync option without triggering a panic
in case a rollback occurs.
This commit specifies two bbolt options when opening the bbolt db.
This reduces heap pressure in case there are a lot of pages on
the freelist.
Copy link
Member

@Roasbeef Roasbeef left a comment

Choose a reason for hiding this comment

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

LGTM

@Roasbeef Roasbeef merged commit 300b649 into btcsuite:master Sep 4, 2019
@Crypt-iQ Crypt-iQ deleted the bbolt_options_btcwallet_0801 branch September 5, 2019 01:27
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