diff options
author | Riccardo Spagni <ric@spagni.net> | 2018-05-31 21:22:32 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2018-05-31 21:22:32 +0200 |
commit | 65c69fb67ef88f31ac0cbb2335d09bb06376e16e (patch) | |
tree | 58c9dca3066d30745688a6d302d21c05d84717df /src/blockchain_db/lmdb/db_lmdb.cpp | |
parent | Merge pull request #3846 (diff) | |
parent | protocol: do not switch to unsafe sync mode for just a few blocks (diff) | |
download | monero-65c69fb67ef88f31ac0cbb2335d09bb06376e16e.tar.xz |
Merge pull request #3884
49cf41a6 protocol: do not switch to unsafe sync mode for just a few blocks (moneromooo-monero)
22a4cb06 core: fix automatic safe db sync mode switching (moneromooo-monero)
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.cpp')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 1 |
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 5c20c8de4..fbf7629c6 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -1346,6 +1346,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); } |