mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-05-30 09:40:16 +02:00
walletdb: Remove BerkeleyBatch friend class from BerkeleyDatabase
This commit is contained in:
parent
00f0041351
commit
74507ce71e
@ -97,7 +97,6 @@ class BerkeleyBatch;
|
|||||||
**/
|
**/
|
||||||
class BerkeleyDatabase : public WalletDatabase
|
class BerkeleyDatabase : public WalletDatabase
|
||||||
{
|
{
|
||||||
friend class BerkeleyBatch;
|
|
||||||
public:
|
public:
|
||||||
/** Create dummy DB handle */
|
/** Create dummy DB handle */
|
||||||
BerkeleyDatabase() : WalletDatabase(), env(nullptr)
|
BerkeleyDatabase() : WalletDatabase(), env(nullptr)
|
||||||
@ -163,11 +162,12 @@ public:
|
|||||||
/** Database pointer. This is initialized lazily and reset during flushes, so it can be null. */
|
/** Database pointer. This is initialized lazily and reset during flushes, so it can be null. */
|
||||||
std::unique_ptr<Db> m_db;
|
std::unique_ptr<Db> m_db;
|
||||||
|
|
||||||
|
std::string strFile;
|
||||||
|
|
||||||
/** Make a BerkeleyBatch connected to this database */
|
/** Make a BerkeleyBatch connected to this database */
|
||||||
std::unique_ptr<DatabaseBatch> MakeBatch(const char* mode = "r+", bool flush_on_close = true) override;
|
std::unique_ptr<DatabaseBatch> MakeBatch(const char* mode = "r+", bool flush_on_close = true) override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string strFile;
|
|
||||||
|
|
||||||
/** Return whether this database handle is a dummy for testing.
|
/** Return whether this database handle is a dummy for testing.
|
||||||
* Only to be used at a low level, application should ideally not care
|
* Only to be used at a low level, application should ideally not care
|
||||||
|
Loading…
x
Reference in New Issue
Block a user