From bd96536637724413173271e8d5df1777f7879c29 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Fri, 15 May 2020 18:39:06 +0000 Subject: db_lmdb: test for mmap support at init time It'll make it clearer when a DB init failure is due to being on a filesystem which does not support mmap --- src/blockchain_db/lmdb/db_lmdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/blockchain_db/lmdb/db_lmdb.h') diff --git a/src/blockchain_db/lmdb/db_lmdb.h b/src/blockchain_db/lmdb/db_lmdb.h index 6ddeed671..ba91bd4d5 100644 --- a/src/blockchain_db/lmdb/db_lmdb.h +++ b/src/blockchain_db/lmdb/db_lmdb.h @@ -356,6 +356,7 @@ public: static int compare_string(const MDB_val *a, const MDB_val *b); private: + void check_mmap_support(); void do_resize(uint64_t size_increase=0); bool need_resize(uint64_t threshold_size=0) const; -- cgit v1.2.3