[wallet-tool] Close bdb when flushing wallet #15390
pull jnewbery wants to merge 1 commits into bitcoin:master from jnewbery:wallet_flush changing 1 files +3 −3-
jnewbery commented at 5:56 pm on February 12, 2019: memberbdb would not be closed when closing the wallet in wallet-tool. Fix this by calling wallet->flush with true.
-
jnewbery commented at 5:57 pm on February 12, 2019: member
Suggested by @MarcoFalke here: #13926 (review)
ping @promag
-
jnewbery force-pushed on Feb 12, 2019
-
MarcoFalke added this to the milestone 0.18.0 on Feb 12, 2019
-
MarcoFalke added the label Wallet on Feb 12, 2019
-
[wallet] Close bdb when flushing wallet.
bdb would not be closed when closing the wallet in wallet-tool. Fix this by calling wallet->flush with true.
-
in src/wallet/wallet.cpp:96 in d4d26d08f2 outdated
92@@ -93,7 +93,7 @@ static void ReleaseWallet(CWallet* wallet) 93 // so that it's in sync with the current chainstate. 94 wallet->WalletLogPrintf("Releasing wallet\n"); 95 wallet->BlockUntilSyncedToCurrentChain(); 96- wallet->Flush(); 97+ wallet->Flush(true);
promag commented at 6:04 pm on February 12, 2019:This is not right, this will mess other dbs in the same env.
jnewbery force-pushed on Feb 12, 2019laanwj commented at 5:33 pm on February 13, 2019: memberutACK 318b1f7af113fe16b67cf3ed4d9bbab3dd4c5e4eMarcoFalke renamed this:
[wallet] Close bdb when flushing wallet.
[wallet-tool] Close bdb when flushing wallet
on Feb 13, 2019MarcoFalke commented at 5:55 pm on February 13, 2019: memberChanged title prefix to[wallet-tool]
meshcollider commented at 8:10 pm on February 13, 2019: contributorpromag commented at 8:13 pm on February 13, 2019: memberIs there currently a strong reason to have theshutdown
argument inFlush()
?MarcoFalke commented at 8:49 pm on February 13, 2019: member@promag I don’t think so, what would be the alternative?MarcoFalke referenced this in commit 9c4a90040d on Feb 13, 2019MarcoFalke merged this on Feb 13, 2019MarcoFalke closed this on Feb 13, 2019
jnewbery commented at 8:59 pm on February 13, 2019: memberIs there currently a strong reason to have the
shutdown
argument inFlush()
?I don’t believe so. It’s a holdover from https://github.com/bitcoin/bitcoin/pull/10767/files
promag commented at 9:09 pm on February 13, 2019: member@jnewbery @MarcoFalke thanks, so I guess we all agree it can be cleaned up.
utACK 318b1f7.
jasonbcox referenced this in commit 7478bfcdab on Sep 3, 20206293 referenced this in commit a9a1a853d1 on Nov 27, 2021MarcoFalke locked this on Dec 16, 2021
github-metadata-mirror
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2024-11-17 09:12 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me