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

This commit is contained in:
moneromooo-monero 2015-12-13 11:08:59 +00:00
parent f141869cac
commit 015b68a2be
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3
1 changed files with 1 additions and 1 deletions

View File

@ -759,7 +759,7 @@ void BlockchainBDB::open(const std::string& filename, const int db_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()));
}