mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 10:28:52 +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
@ -1354,7 +1354,8 @@ void BlockchainLMDB::open(const std::string& filename, const int db_flags)
|
|||||||
|
|
||||||
m_folder = filename;
|
m_folder = filename;
|
||||||
|
|
||||||
check_mmap_support();
|
try { check_mmap_support(); }
|
||||||
|
catch(...) { MERROR("Failed to check for mmap support, proceeding"); }
|
||||||
|
|
||||||
#ifdef __OpenBSD__
|
#ifdef __OpenBSD__
|
||||||
if ((mdb_flags & MDB_WRITEMAP) == 0) {
|
if ((mdb_flags & MDB_WRITEMAP) == 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user