mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 10:38:42 +01:00
walletdb: Add BerkeleyDatabase::Open dummy function
Adds an Open function for the class abstraction that does nothing for now.
This commit is contained in:
parent
71d28e7cdc
commit
2179dbcbcd
@ -413,6 +413,11 @@ BerkeleyBatch::BerkeleyBatch(BerkeleyDatabase& database, const char* pszMode, bo
|
||||
}
|
||||
}
|
||||
|
||||
void BerkeleyDatabase::Open(const char* mode)
|
||||
{
|
||||
throw std::logic_error("BerkeleyDatabase does not implement Open. This function should not be called.");
|
||||
}
|
||||
|
||||
void BerkeleyBatch::Flush()
|
||||
{
|
||||
if (activeTxn)
|
||||
|
@ -117,6 +117,10 @@ public:
|
||||
|
||||
~BerkeleyDatabase();
|
||||
|
||||
/** Open the database if it is not already opened.
|
||||
* Dummy function, doesn't do anything right now, but is needed for class abstraction */
|
||||
void Open(const char* mode);
|
||||
|
||||
/** Rewrite the entire database on disk, with the exception of key pszSkip if non-zero
|
||||
*/
|
||||
bool Rewrite(const char* pszSkip=nullptr);
|
||||
|
Loading…
Reference in New Issue
Block a user