diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-06-15 14:39:26 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-07-01 12:32:06 -0400 |
commit | 91d109156d63ff81cda534bd7bec8369af0027dd (patch) | |
tree | 288a93c357ad1dc8267c7597d3166e9d7cb33149 /src/wallet/bdb.cpp | |
parent | 8f1bcf8b7b6e47c05f2e43dd98ec3505b888d8b3 (diff) |
walletdb: Move PeriodicFlush into WalletDatabase
Make PeriodicFlush a non-static member of WalletDatabase instead of
WalletBatch.
Diffstat (limited to 'src/wallet/bdb.cpp')
-rw-r--r-- | src/wallet/bdb.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/wallet/bdb.cpp b/src/wallet/bdb.cpp index b09337b5a6..4856f4bff8 100644 --- a/src/wallet/bdb.cpp +++ b/src/wallet/bdb.cpp @@ -614,14 +614,12 @@ void BerkeleyEnvironment::Flush(bool fShutdown) } } -bool BerkeleyBatch::PeriodicFlush(BerkeleyDatabase& database) +bool BerkeleyDatabase::PeriodicFlush() { - if (database.IsDummy()) { + if (IsDummy()) { return true; } bool ret = false; - BerkeleyEnvironment *env = database.env.get(); - const std::string& strFile = database.strFile; TRY_LOCK(cs_db, lockDb); if (lockDb) { |