mirror of
https://github.com/monero-project/monero.git
synced 2026-01-19 16:10:35 -08:00
Merge pull request #3876
740da1bcore: fix automatic safe db sync mode switching (moneromooo-monero)e942d34protocol: do not switch to unsafe sync mode for just a few blocks (moneromooo-monero)
This commit is contained in:
@@ -1397,6 +1397,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