aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db
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-28 12:14:04 +0100
commit740da1ba9548d231a05d047bba9e2561aa8531f6 (patch)
tree3aa28fe15c35babaf5c3acb1e865357dbf848b6a /src/blockchain_db
parentMerge pull request #3800 (diff)
downloadmonero-740da1ba9548d231a05d047bba9e2561aa8531f6.tar.xz
core: fix automatic safe db sync mode switching
Diffstat (limited to 'src/blockchain_db')
-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);
}