Page MenuHomePhabricator

walletdb: Handle cursor internally
ClosedPublic

Authored by PiRK on Aug 27 2021, 15:02.

Details

Reviewers
majcosta
Group Reviewers
Restricted Project
Commits
rABCd0c7f1c3fd6b: walletdb: Handle cursor internally
Summary

Instead of returning a Dbc (BDB cursor object) and having the caller
deal with the cursor, make BerkeleyBatch handle the cursor internally.

This prepares BerkeleyBatch to work with other database systems as Dbc
objects are BDB specific.

This is a backport of core#19308

Test Plan

ninja all check-all

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

PiRK requested review of this revision.Aug 27 2021, 15:02
majcosta requested changes to this revision.Aug 27 2021, 21:05
majcosta added a subscriber: majcosta.
majcosta added inline comments.
src/wallet/bdb.cpp
563 ↗(On Diff #29617)
This revision now requires changes to proceed.Aug 27 2021, 21:05
This revision is now accepted and ready to land.Aug 28 2021, 08:22
This revision was automatically updated to reflect the committed changes.