diff options
| author | luigi1111 <luigi1111w@gmail.com> | 2018-06-08 15:16:59 -0500 |
|---|---|---|
| committer | luigi1111 <luigi1111w@gmail.com> | 2018-06-08 15:16:59 -0500 |
| commit | 25e7a7d96f2e46821d6613e6d2012b367dd70f38 (patch) | |
| tree | 35fa631f109fdfd018005ceb5e7ab346e7380335 /src/blockchain_db | |
| parent | 2619d966c6180ad7207e38f4c2d22113065c3e91 (diff) | |
| parent | 284fe6438d5444ab11fecce959b32106f5d2562f (diff) | |
| download | monzero-core-25e7a7d96f2e46821d6613e6d2012b367dd70f38.tar.gz monzero-core-25e7a7d96f2e46821d6613e6d2012b367dd70f38.tar.xz monzero-core-25e7a7d96f2e46821d6613e6d2012b367dd70f38.zip | |
Merge pull request #3340
284fe64 db_lmdb: warn about slowness when running off a spinning disk (moneromooo-monero)
Diffstat (limited to 'src/blockchain_db')
| -rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index 300fb6d2f..fe31321f3 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -1178,6 +1178,9 @@ void BlockchainLMDB::open(const std::string& filename, const int db_flags) throw DB_ERROR("Database could not be opened"); } + if (tools::is_hdd(filename.c_str())) + MCLOG_RED(el::Level::Warning, "global", "The blockchain is on a rotating drive: this will be very slow, use a SSD if possible"); + m_folder = filename; #ifdef __OpenBSD__ |
