diff options
author | George Hazan <ghazan@miranda.im> | 2020-11-23 13:51:15 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-11-23 13:51:15 +0300 |
commit | 3fbba2c69bc58ff79fd82b33487b68a0049241b3 (patch) | |
tree | 5fbfcedfd79d91205919a60e41a1ef9f703ff596 /plugins/Dbx_mdbx | |
parent | ce00ea0c677f5965a349a817c2006e50d8fd629e (diff) |
fixes #2626 (Import: cannot import from mdbx to sqlite)
Diffstat (limited to 'plugins/Dbx_mdbx')
-rw-r--r-- | plugins/Dbx_mdbx/src/dbintf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Dbx_mdbx/src/dbintf.cpp b/plugins/Dbx_mdbx/src/dbintf.cpp index ad22d1f850..718642a7b8 100644 --- a/plugins/Dbx_mdbx/src/dbintf.cpp +++ b/plugins/Dbx_mdbx/src/dbintf.cpp @@ -149,7 +149,7 @@ int CDbxMDBX::Load() MDBX_db_flags_t defFlags = MDBX_CREATE;
m_pWriteTran = nullptr;
- m_dbError = mdbx_txn_begin(m_env, nullptr, MDBX_TXN_READWRITE, &m_pWriteTran);
+ m_dbError = mdbx_txn_begin(m_env, nullptr, (m_bReadOnly) ? MDBX_TXN_RDONLY : MDBX_TXN_READWRITE, &m_pWriteTran);
if (m_pWriteTran == nullptr) {
if (m_dbError == MDBX_TXN_FULL) {
if (IDOK == MessageBox(NULL, TranslateT("Your database is in the obsolete format. Click OK to read the upgrade instructions or Cancel to exit"), TranslateT("Error"), MB_ICONERROR | MB_OKCANCEL))
|