db_lmdb: create all needed directories, not just the leaf one

This commit is contained in:
moneromooo-monero 2015-12-13 11:09:43 +00:00
parent 015b68a2be
commit 1494557633
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3

View file

@ -943,7 +943,7 @@ void BlockchainLMDB::open(const std::string& filename, const int mdb_flags)
}
else
{
if (!boost::filesystem::create_directory(direc))
if (!boost::filesystem::create_directories(direc))
throw0(DB_OPEN_FAILURE(std::string("Failed to create directory ").append(filename).c_str()));
}