Skip to content

Commit

Permalink
update is_hdd() calls
Browse files Browse the repository at this point in the history
  • Loading branch information
p8p committed Aug 23, 2018
1 parent e2ff824 commit ccfb81a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/blockchain_db/lmdb/db_lmdb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,8 @@ 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()))
boost::optional<bool> q = tools::is_hdd(filename.c_str());
if (q and q.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;
Expand Down

0 comments on commit ccfb81a

Please sign in to comment.