aboutsummaryrefslogtreecommitdiff
path: root/src/blockchain_db/lmdb/db_lmdb.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-03-03 14:01:52 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2018-06-08 20:59:02 +0100
commit284fe6438d5444ab11fecce959b32106f5d2562f (patch)
tree35fa631f109fdfd018005ceb5e7ab346e7380335 /src/blockchain_db/lmdb/db_lmdb.cpp
parentMerge pull request #3908 (diff)
downloadmonero-284fe6438d5444ab11fecce959b32106f5d2562f.tar.xz
db_lmdb: warn about slowness when running off a spinning disk
Diffstat (limited to '')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp3
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__