mirror of
https://github.com/monero-project/monero.git
synced 2024-12-25 13:09:24 +00:00
blockchain_dump: fix build without berkeley db
This commit is contained in:
parent
466706f695
commit
b1d0c8a049
1 changed files with 4 additions and 0 deletions
|
@ -31,7 +31,9 @@
|
||||||
#include "cryptonote_core/blockchain.h"
|
#include "cryptonote_core/blockchain.h"
|
||||||
#include "blockchain_db/blockchain_db.h"
|
#include "blockchain_db/blockchain_db.h"
|
||||||
#include "blockchain_db/lmdb/db_lmdb.h"
|
#include "blockchain_db/lmdb/db_lmdb.h"
|
||||||
|
#ifdef BERKELEY_DB
|
||||||
#include "blockchain_db/berkeleydb/db_bdb.h"
|
#include "blockchain_db/berkeleydb/db_bdb.h"
|
||||||
|
#endif
|
||||||
#include "blockchain_utilities.h"
|
#include "blockchain_utilities.h"
|
||||||
#include "common/command_line.h"
|
#include "common/command_line.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
@ -237,11 +239,13 @@ int main(int argc, char* argv[])
|
||||||
db = new BlockchainLMDB();
|
db = new BlockchainLMDB();
|
||||||
mdb_flags |= MDB_RDONLY;
|
mdb_flags |= MDB_RDONLY;
|
||||||
}
|
}
|
||||||
|
#ifdef BERKELEY_DB
|
||||||
else if (db_type == "berkeley")
|
else if (db_type == "berkeley")
|
||||||
{
|
{
|
||||||
db = new BlockchainBDB();
|
db = new BlockchainBDB();
|
||||||
// can't open readonly due to the way flags are split in db_bdb.cpp
|
// can't open readonly due to the way flags are split in db_bdb.cpp
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
LOG_PRINT_L0("Invalid db type: " << db_type);
|
LOG_PRINT_L0("Invalid db type: " << db_type);
|
||||||
|
|
Loading…
Reference in a new issue