core: fix automatic safe db sync mode switching
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user