aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/bdb.h
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-05-13 14:09:26 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-07-22 23:30:19 -0400
commit4fe4b3bf1b152877677a6115f82aefaf318dd514 (patch)
treee4694b47079bfbd7df234094d24596d96fe5b536 /src/wallet/bdb.h
parent65fb8807ac402d1e924fd85969b5837c192bf59f (diff)
downloadbitcoin-4fe4b3bf1b152877677a6115f82aefaf318dd514.tar.xz
walletdb: track database file use as m_refcount within BerkeleyDatabase
Instead of having BerkeleyEnvironment track the file use count, make BerkeleyDatabase do it itself.
Diffstat (limited to 'src/wallet/bdb.h')
-rw-r--r--src/wallet/bdb.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h
index 3068a75c5d..6c148b37cb 100644
--- a/src/wallet/bdb.h
+++ b/src/wallet/bdb.h
@@ -52,7 +52,6 @@ private:
public:
std::unique_ptr<DbEnv> dbenv;
- std::map<std::string, int> mapFileUseCount;
std::map<std::string, std::reference_wrapper<BerkeleyDatabase>> m_databases;
std::unordered_map<std::string, WalletDatabaseFileId> m_fileids;
std::condition_variable_any m_db_in_use;