diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-20 19:05:09 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-20 19:05:09 +0300 |
commit | 4c816da90e153039fa3deebe30f443cbe7bc88d5 (patch) | |
tree | 778b8fe5a8449b008c983c596041867a373b817f /plugins | |
parent | e141cd74d676f6e349941ca588711f741000f0fb (diff) |
MDBX_NOTLS mode removed from mdbx
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Dbx_mdb/src/dbintf.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
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;
|