diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-15 18:39:06 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-05-16 00:20:22 +0000 |
commit | bd96536637724413173271e8d5df1777f7879c29 (patch) | |
tree | 02dc8262f94d6284a4d2745f0cad0b00786ae386 /src/blockchain_db/lmdb/db_lmdb.h | |
parent | Merge pull request #6510 (diff) | |
download | monero-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 'src/blockchain_db/lmdb/db_lmdb.h')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.h | 1 |
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; |