HomePhabricator

walletdb: track database file use as m_refcount within BerkeleyDatabase

Description

walletdb: track database file use as m_refcount within BerkeleyDatabase

Summary:
Instead of having BerkeleyEnvironment track the file use count, make
BerkeleyDatabase do it itself.

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

Depends on D10034

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on May 13 2020, 18:09
PiRKCommitted on Sep 6 2021, 16:00
PiRKPushed on Sep 6 2021, 16:00
Reviewer
Restricted Project
Differential Revision
D10035: walletdb: track database file use as m_refcount within BerkeleyDatabase
Parents
rABC07db5362b0df: Combine BerkeleyEnvironment::Verify into BerkeleyDatabase::Verify
Branches
Unknown
Tags
Unknown