From 4c816da90e153039fa3deebe30f443cbe7bc88d5 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 20 Dec 2017 19:05:09 +0300 Subject: MDBX_NOTLS mode removed from mdbx --- plugins/Dbx_mdb/src/dbintf.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'plugins/Dbx_mdb') diff --git a/plugins/Dbx_mdb/src/dbintf.cpp b/plugins/Dbx_mdb/src/dbintf.cpp index daa0f884bd..17715957d8 100644 --- a/plugins/Dbx_mdb/src/dbintf.cpp +++ b/plugins/Dbx_mdb/src/dbintf.cpp @@ -125,7 +125,7 @@ int CDbxMdb::Load(bool bSkipInit) if (InitModules()) return EGROKPRF_DAMAGED; - if (InitCrypt()) return EGROKPRF_DAMAGED; + if (InitCrypt()) return EGROKPRF_DAMAGED; // everything is ok, go on if (!m_bReadOnly) { @@ -183,13 +183,12 @@ STDMETHODIMP_(void) CDbxMdb::SetCacheSafetyMode(BOOL bIsSet) int CDbxMdb::Map() { - unsigned int mode = MDBX_NOSUBDIR | MDBX_NOTLS | MDBX_MAPASYNC | MDBX_WRITEMAP | MDBX_NOSYNC; + unsigned int mode = MDBX_NOSUBDIR | MDBX_MAPASYNC | MDBX_WRITEMAP | MDBX_NOSYNC; if (m_bReadOnly) mode |= MDBX_RDONLY; mdbx_env_open(m_pMdbEnv, _T2A(m_tszProfileName), mode, 0664); mdbx_env_set_mapsize(m_pMdbEnv, 0x1000000); return MDBX_SUCCESS; - } bool CDbxMdb::Remap() @@ -199,7 +198,6 @@ bool CDbxMdb::Remap() return mdbx_env_set_geometry(m_pMdbEnv, -1, -1, ei.mi_mapsize + 0x100000, 0x100000, -1, -1) == MDBX_SUCCESS; } - ///////////////////////////////////////////////////////////////////////////////////////// static DWORD DatabaseCorrupted = 0; -- cgit v1.2.3