aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-05-28 12:12:19 +0100
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-05-30 18:28:53 +0100
commit22a4cb06095848851dbb95495ac9d02c70336f6f (patch)
treea58f75e0bfa6159a5ed2b1d5625da85923897083 /src/blockchain_db/lmdb/db_lmdb.cpp
parentMerge pull request #3846 (diff)
downloadmonero-22a4cb06095848851dbb95495ac9d02c70336f6f.tar.xz
core: fix automatic safe db sync mode switching
Diffstat (limited to 'src/blockchain_db/lmdb/db_lmdb.cpp')
-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 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);
}