diff options
author | luigi1111 <luigi1111w@gmail.com> | 2018-09-10 15:07:02 -0500 |
---|---|---|
committer | luigi1111 <luigi1111w@gmail.com> | 2018-09-10 15:07:02 -0500 |
commit | ab85b924c907587aaf52a4b14febdc78f6f2c041 (patch) | |
tree | 5020be4cef3124b75e0082af5f3ff5da76e13c26 /src/blockchain_db/lmdb | |
parent | Merge pull request #4256 (diff) | |
parent | is_hdd update (diff) | |
download | monero-ab85b924c907587aaf52a4b14febdc78f6f2c041.tar.xz |
Merge pull request #4293
9d65399 is_hdd update (p8p)
Diffstat (limited to 'src/blockchain_db/lmdb')
-rw-r--r-- | src/blockchain_db/lmdb/db_lmdb.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp index 7e54041d7..d854cbeaf 100644 --- a/src/blockchain_db/lmdb/db_lmdb.cpp +++ b/src/blockchain_db/lmdb/db_lmdb.cpp @@ -1196,8 +1196,12 @@ 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"); + boost::optional<bool> is_hdd_result = tools::is_hdd(filename.c_str()); + if (is_hdd_result) + { + if (is_hdd_result.value()) + 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; |