db_lmdb: catch exceptions testing for mmap support

Turns out at least one arch (armel based) does not have unique_path
implemented and throws
pull/7634/head
moneromooo-monero 3 years ago
parent dcba757dd2
commit 5a2edea16b
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

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

Loading…
Cancel
Save