db_lmdb: catch exceptions testing for mmap support

Turns out at least one arch (armel based) does not have unique_path
implemented and throws
This commit is contained in:
moneromooo-monero 2021-03-24 21:42:19 +00:00
parent dcba757dd2
commit 5a2edea16b
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -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) {