From: bert hubert Date: Fri, 10 May 2019 09:40:19 +0000 (+0200) Subject: Make explicit lmdbbackend synchronous option X-Git-Tag: auth-4.2.0-rc2~6^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b3b108136df630814295189139e48e91ead146a;p=thirdparty%2Fpdns.git Make explicit lmdbbackend synchronous option --- diff --git a/modules/lmdbbackend/lmdbbackend.cc b/modules/lmdbbackend/lmdbbackend.cc index 0ddc65fe80..1c3bdc7155 100644 --- a/modules/lmdbbackend/lmdbbackend.cc +++ b/modules/lmdbbackend/lmdbbackend.cc @@ -58,7 +58,7 @@ LMDBBackend::LMDBBackend(const std::string& suffix) d_asyncFlag = MDB_NOMETASYNC; else if(syncMode == "mapasync") d_asyncFlag = MDB_MAPASYNC; - else if(syncMode.empty()) + else if(syncMode.empty() || syncMode == "sync") d_asyncFlag = 0; else throw std::runtime_error("Unknown sync mode "+syncMode+" requested for LMDB backend");