aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-05-30 15:46:13 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-05-30 15:46:13 -0500
commita7ea14dc6a561069ca658a2c5343fbb7143996a9 (patch)
treef843d8fc50ec6394255d6b3bf8e60c6a65056eee /src/blockchain_db/lmdb
parentMerge pull request #3731 (diff)
parentprotocol: do not switch to unsafe sync mode for just a few blocks (diff)
downloadmonero-a7ea14dc6a561069ca658a2c5343fbb7143996a9.tar.xz
Merge pull request #3876
740da1b core: fix automatic safe db sync mode switching (moneromooo-monero) e942d34 protocol: do not switch to unsafe sync mode for just a few blocks (moneromooo-monero)
Diffstat (limited to 'src/blockchain_db/lmdb')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index 65b7f39d5..300fb6d2f 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -1397,6 +1397,7 @@ void BlockchainLMDB::sync()
void BlockchainLMDB::safesyncmode(const bool onoff)
{
+ MINFO("switching safe mode " << (onoff ? "on" : "off"));
mdb_env_set_flags(m_env, MDB_NOSYNC|MDB_MAPASYNC, !onoff);
}