HomePhabricator

walletdb: Introduce AddRef and RemoveRef functions

Description

walletdb: Introduce AddRef and RemoveRef functions

Summary:
Refactor mapFileUseCount increment and decrement to separate functions
AddRef and RemoveRef

This is a backport of core#19334 [2/4]
https://github.com/bitcoin/bitcoin/pull/19334/commits/71d28e7cdca1c8553531bb3a4725d7916363ec5c

Depends on D10022

Test Plan: ninja all check-all

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

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

Details

Provenance
Andrew Chow <achow101-github@achow101.com>Authored on Jun 20 2020, 00:51
PiRKCommitted on Sep 2 2021, 14:26
PiRKPushed on Sep 2 2021, 14:26
Reviewer
Restricted Project
Differential Revision
D10023: walletdb: Introduce AddRef and RemoveRef functions
Parents
rABC532c36209163: walletdb: Move BerkeleyDatabase::Flush(true) to Close()
Branches
Unknown
Tags
Unknown