HomePhabricator

walletdb: Move Db->open to BerkeleyDatabase::Open

Description

walletdb: Move Db->open to BerkeleyDatabase::Open

Summary:
Instead of opening the Db handle in BerkeleyBatch, make BerkeleyDatabase
do that.

This is a backport of core#19335 [3/5]
https://github.com/bitcoin/bitcoin/pull/19335/commits/d86efab37002841fd059251672e1ec1a977b743f

Depends on D10035

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Subscribers: Fabien

Differential Revision: https://reviews.bitcoinabc.org/D10036

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on May 11 2020, 02:41
PiRKCommitted on Sep 6 2021, 16:01
PiRKPushed on Sep 6 2021, 16:01
Reviewer
Restricted Project
Differential Revision
D10036: walletdb: Move Db->open to BerkeleyDatabase::Open
Parents
rABC45210e0f0dc3: walletdb: track database file use as m_refcount within BerkeleyDatabase
Branches
Unknown
Tags
Unknown