-
Notifications
You must be signed in to change notification settings - Fork 38.7k
[wallet-tool] Close bdb when flushing wallet #15390
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
Conversation
|
Suggested by @MarcoFalke here: #13926 (comment) ping @promag |
1d079af to
d4d26d0
Compare
src/wallet/wallet.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not right, this will mess other dbs in the same env.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @promag . Fixed
bdb would not be closed when closing the wallet in wallet-tool. Fix this by calling wallet->flush with true.
d4d26d0 to
318b1f7
Compare
|
utACK 318b1f7 |
|
Changed title prefix to |
|
utACK 318b1f7 |
|
Is there currently a strong reason to have the |
|
@promag I don't think so, what would be the alternative? |
318b1f7 [wallet] Close bdb when flushing wallet. (John Newbery) Pull request description: bdb would not be closed when closing the wallet in wallet-tool. Fix this by calling wallet->flush with true. Tree-SHA512: f722e527e4806eca5254221e944f57853d11bf89a9264309fa558a6cc2b23feefb7bb2963e87b4fad9cfb31ac4cffe563688988e0614a481a8ff1d393aceb132
I don't believe so. It's a holdover from https://github.com/bitcoin/bitcoin/pull/10767/files |
|
@jnewbery @MarcoFalke thanks, so I guess we all agree it can be cleaned up. utACK 318b1f7. |
Summary: [wallet] Close bdb when flushing wallet. (John Newbery) Pull request description: bdb would not be closed when closing the wallet in wallet-tool. Fix this by calling wallet->flush with true. --- Backport of Core [[bitcoin/bitcoin#15390 | PR15390]] Test Plan: ninja check check-functional Reviewers: #bitcoin_abc, deadalnix Reviewed By: #bitcoin_abc, deadalnix Subscribers: deadalnix Differential Revision: https://reviews.bitcoinabc.org/D7327
318b1f7 [wallet] Close bdb when flushing wallet. (John Newbery) Pull request description: bdb would not be closed when closing the wallet in wallet-tool. Fix this by calling wallet->flush with true. Tree-SHA512: f722e527e4806eca5254221e944f57853d11bf89a9264309fa558a6cc2b23feefb7bb2963e87b4fad9cfb31ac4cffe563688988e0614a481a8ff1d393aceb132
bdb would not be closed when closing the wallet in wallet-tool. Fix this by calling wallet->flush with true.