danicoin/src/blockchain_db/berkeleydb
moneromooo-monero 1c8262c527
db_bdb: move log_set_config call before open
This is a precaution for older Berkeley DB versions.

- smooth reports an issue running with 4.7:
  DB_ENV->log_set_config: DB_LOG_IN_MEMORY: method not permitted
  after handle's open method
- this works just fine with 5.3
- we do not use DB_LOG_IN_MEMORY, but we use DB_LOG_AUTO_REMOVE
- libdb docs say some flags must be set before open, and some
  may be set at any time, but never say some must be set after
  open
- moving the call to log_set_config before open works with 5.3

Therefore, it seems best to move the call before open.
2015-12-07 19:22:22 +00:00
..
db_bdb.cpp db_bdb: move log_set_config call before open 2015-12-07 19:22:22 +00:00
db_bdb.h blockchain_db: make the indexing base a BlockchainDB virtual function 2015-12-05 18:41:29 +00:00