aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-13 11:08:59 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-13 11:08:59 +0000
commit015b68a2bea655f957ee3279b76a62604d6096f7 (patch)
treecf667f68b1024b39f58179d04a4b863eed91799d /src
parenttests: remove data-dir argument registration (diff)
downloadmonero-015b68a2bea655f957ee3279b76a62604d6096f7.tar.xz
db_bdb: create all needed directories, not just the leaf one
Diffstat (limited to 'src')
-rw-r--r--src/blockchain_db/berkeleydb/db_bdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/berkeleydb/db_bdb.cpp b/src/blockchain_db/berkeleydb/db_bdb.cpp
index ce355ccde..f30e156c1 100644
--- a/src/blockchain_db/berkeleydb/db_bdb.cpp
+++ b/src/blockchain_db/berkeleydb/db_bdb.cpp
@@ -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()));
}