aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.h
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-05-15 18:39:06 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-05-16 00:20:22 +0000
commitbd96536637724413173271e8d5df1777f7879c29 (patch)
tree02dc8262f94d6284a4d2745f0cad0b00786ae386 /src/blockchain_db/lmdb/db_lmdb.h
parentMerge pull request #6510 (diff)
downloadmonero-bd96536637724413173271e8d5df1777f7879c29.tar.xz
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
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.h1
1 files changed, 1 insertions, 0 deletions
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;