diff options
| author | Luke Dashjr <[email protected]> | 2016-09-09 08:15:01 +0000 |
|---|---|---|
| committer | Luke Dashjr <[email protected]> | 2016-11-11 11:35:49 +0000 |
| commit | fb0c934d1b2d58b165e13d2b301e54870c5dc60f (patch) | |
| tree | 50e25726ca442c99754413e283ac7adca78a8413 /src/wallet/walletdb.cpp | |
| parent | Merge #9115: Mention reporting security issues responsibly (diff) | |
| download | discoin-fb0c934d1b2d58b165e13d2b301e54870c5dc60f.tar.xz discoin-fb0c934d1b2d58b165e13d2b301e54870c5dc60f.zip | |
Wallet: Let the interval-flushing thread figure out the filename
Diffstat (limited to 'src/wallet/walletdb.cpp')
| -rw-r--r-- | src/wallet/walletdb.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/wallet/walletdb.cpp b/src/wallet/walletdb.cpp index 43fd6a20a..9496c4404 100644 --- a/src/wallet/walletdb.cpp +++ b/src/wallet/walletdb.cpp @@ -768,7 +768,7 @@ DBErrors CWalletDB::ZapWalletTx(CWallet* pwallet, vector<CWalletTx>& vWtx) return DB_LOAD_OK; } -void ThreadFlushWalletDB(const string& strFile) +void ThreadFlushWalletDB() { // Make this thread recognisable as the wallet flushing thread RenameThread("bitcoin-wallet"); @@ -810,6 +810,7 @@ void ThreadFlushWalletDB(const string& strFile) if (nRefCount == 0) { boost::this_thread::interruption_point(); + const std::string& strFile = pwalletMain->strWalletFile; map<string, int>::iterator _mi = bitdb.mapFileUseCount.find(strFile); if (_mi != bitdb.mapFileUseCount.end()) { |