From ee9d71e9f94ba8571c44c889a70bda77c8961959 Mon Sep 17 00:00:00 2001 From: warptangent Date: Sat, 26 Dec 2015 14:27:35 -0800 Subject: BlockchainDB: skip fixup check if read-only database --- src/blockchain_db/berkeleydb/db_bdb.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/blockchain_db/berkeleydb/db_bdb.cpp') diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp index 4799afebc..e37058a99 100644 --- a/src/blockchain_db/berkeleydb/db_bdb.cpp +++ b/src/blockchain_db/berkeleydb/db_bdb.cpp @@ -2200,8 +2200,14 @@ void BlockchainBDB::checkpoint_worker() const LOG_PRINT_L0("Leaving BDB checkpoint thread."); } +bool BlockchainBDB::is_read_only() const +{ + return false; +} + void BlockchainBDB::fixup() { + LOG_PRINT_L3("BlockchainBDB::" << __func__); // Always call parent as well BlockchainDB::fixup(); } -- cgit v1.2.3