aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2021-03-24 21:42:19 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2021-03-25 09:24:45 +0000
commit5a2edea16b899a9dc47f522cfc591362efd1b127 (patch)
tree2fa6241926e9109a6636724b902cee1f9810f9b8 /src/blockchain_db/lmdb/db_lmdb.cpp
parentMerge pull request #7619 (diff)
downloadmonero-5a2edea16b899a9dc47f522cfc591362efd1b127.tar.xz
db_lmdb: catch exceptions testing for mmap support
Turns out at least one arch (armel based) does not have unique_path implemented and throws
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index 5f3b495b0..1d7b10648 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -1354,7 +1354,8 @@ void BlockchainLMDB::open(const std::string& filename, const int db_flags)
m_folder = filename;
- check_mmap_support();
+ try { check_mmap_support(); }
+ catch(...) { MERROR("Failed to check for mmap support, proceeding"); }
#ifdef __OpenBSD__
if ((mdb_flags & MDB_WRITEMAP) == 0) {