aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-13 11:09:43 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2015-12-13 11:09:43 +0000
commit14945576335a3e5aa292a4af61d37e9ef88e7858 (patch)
treec174876b2e294612668619d6b173b86f0b39c7d4 /src
parentdb_bdb: create all needed directories, not just the leaf one (diff)
downloadmonero-14945576335a3e5aa292a4af61d37e9ef88e7858.tar.xz
db_lmdb: create all needed directories, not just the leaf one
Diffstat (limited to 'src')
-rw-r--r--src/blockchain_db/lmdb/db_lmdb.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/blockchain_db/lmdb/db_lmdb.cpp b/src/blockchain_db/lmdb/db_lmdb.cpp
index de8066123..2bddcc6f5 100644
--- a/src/blockchain_db/lmdb/db_lmdb.cpp
+++ b/src/blockchain_db/lmdb/db_lmdb.cpp
@@ -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()));
}