diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-05-28 12:12:19 +0100 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-05-28 12:14:04 +0100 |
commit | 740da1ba9548d231a05d047bba9e2561aa8531f6 (patch) | |
tree | 3aa28fe15c35babaf5c3acb1e865357dbf848b6a /src/blockchain_db/lmdb/db_lmdb.cpp | |
parent | Merge pull request #3800 (diff) | |
download | monero-740da1ba9548d231a05d047bba9e2561aa8531f6.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.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); } |