summaryrefslogtreecommitdiff
path: root/plugins/Dbx_mdbx/src/dbintf.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-09 12:25:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-09 12:25:35 +0300
commit89ac15679e32fa707757a95fafbfc7ef9b3e705d (patch)
tree7398e4f88b59b3da140d4c4e8c0ef6b9dca4ecf1 /plugins/Dbx_mdbx/src/dbintf.cpp
parentecd2f405a56d22aae8b3e59dd31483069041bb74 (diff)
frankly speaking, there's no need to lock the database profile since we check the semaphore _before_ opening database
also fixes #1253
Diffstat (limited to 'plugins/Dbx_mdbx/src/dbintf.cpp')
-rw-r--r--plugins/Dbx_mdbx/src/dbintf.cpp3
1 files changed, 1 insertions, 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);
}
/////////////////////////////////////////////////////////////////////////////////////////