mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
Merge pull request #7634
5a2edea
db_lmdb: catch exceptions testing for mmap support (moneromooo-monero)
This commit is contained in:
commit
ad9956d987
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;
|
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 a new issue