diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-05-10 22:41:34 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-07-22 23:30:19 -0400 |
commit | d86efab37002841fd059251672e1ec1a977b743f (patch) | |
tree | 19b52f8623b2b11dd55891636b5f24f592c9bd79 /src/wallet/bdb.h | |
parent | 4fe4b3bf1b152877677a6115f82aefaf318dd514 (diff) | |
download | bitcoin-d86efab37002841fd059251672e1ec1a977b743f.tar.xz |
walletdb: Move Db->open to BerkeleyDatabase::Open
Instead of opening the Db handle in BerkeleyBatch, make BerkeleyDatabase
do that.
Diffstat (limited to 'src/wallet/bdb.h')
-rw-r--r-- | src/wallet/bdb.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h index 6c148b37cb..90f5f2e877 100644 --- a/src/wallet/bdb.h +++ b/src/wallet/bdb.h @@ -217,7 +217,7 @@ protected: public: explicit BerkeleyBatch(BerkeleyDatabase& database, const char* pszMode = "r+", bool fFlushOnCloseIn=true); - ~BerkeleyBatch() override { Close(); } + ~BerkeleyBatch() override; BerkeleyBatch(const BerkeleyBatch&) = delete; BerkeleyBatch& operator=(const BerkeleyBatch&) = delete; |