mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-22 15:32:24 +00:00
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:
parent
dcba757dd2
commit
5a2edea16b
1 changed files with 2 additions and 1 deletions
|
@ -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…
Reference in a new issue