diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-13 11:08:59 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2015-12-13 11:08:59 +0000 |
commit | 015b68a2bea655f957ee3279b76a62604d6096f7 (patch) | |
tree | cf667f68b1024b39f58179d04a4b863eed91799d | |
parent | tests: remove data-dir argument registration (diff) | |
download | monero-015b68a2bea655f957ee3279b76a62604d6096f7.tar.xz |
db_bdb: create all needed directories, not just the leaf one
-rw-r--r-- | src/blockchain_db/berkeleydb/db_bdb.cpp | 2 |
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())); } |