From 89ac15679e32fa707757a95fafbfc7ef9b3e705d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 9 Apr 2018 12:25:35 +0300 Subject: frankly speaking, there's no need to lock the database profile since we check the semaphore _before_ opening database also fixes #1253 --- plugins/Dbx_mdbx/src/dbintf.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp index fb3dbc1609..0a643f548c 100644 --- a/plugins/Dbx_mdbx/src/dbintf.cpp +++ b/plugins/Dbx_mdbx/src/dbintf.cpp @@ -195,8 +195,7 @@ int CDbxMDBX::Map() if (m_bReadOnly) mode |= MDBX_RDONLY; - int exclusive = (m_bShared) ? 1 : 2; - return mdbx_env_open_ex(m_env, _T2A(m_tszProfileName), mode, 0664, &exclusive); + return mdbx_env_open(m_env, _T2A(m_tszProfileName), mode, 0664); } ///////////////////////////////////////////////////////////////////////////////////////// -- cgit v1.2.3