diff options
| author | Marko Bencun <[email protected]> | 2017-02-22 18:10:00 +0900 |
|---|---|---|
| committer | Marko Bencun <[email protected]> | 2017-06-14 00:04:13 +0200 |
| commit | 1d1ea9f0962a331c21a3029a0302e5906a396f56 (patch) | |
| tree | 0d4f9a7b2ff1d68ad35fa42cf05f05fff0ae6b51 /src/dbwrapper.cpp | |
| parent | Merge #10431: Prevent shadowing the global dustRelayFee (diff) | |
| download | discoin-1d1ea9f0962a331c21a3029a0302e5906a396f56.tar.xz discoin-1d1ea9f0962a331c21a3029a0302e5906a396f56.zip | |
Turn TryCreateDirectory() into TryCreateDirectories()
Use case: TryCreateDirectory(GetDataDir() / "blocks" / "index") would
fail if the blocks directory was not explicitly created before.
The line that did so was in a weird location and could be removed as a
result.
Diffstat (limited to 'src/dbwrapper.cpp')
| -rw-r--r-- | src/dbwrapper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dbwrapper.cpp b/src/dbwrapper.cpp index 3d2098c05..4ad8a2c1a 100644 --- a/src/dbwrapper.cpp +++ b/src/dbwrapper.cpp @@ -108,7 +108,7 @@ CDBWrapper::CDBWrapper(const fs::path& path, size_t nCacheSize, bool fMemory, bo leveldb::Status result = leveldb::DestroyDB(path.string(), options); dbwrapper_private::HandleError(result); } - TryCreateDirectory(path); + TryCreateDirectories(path); LogPrintf("Opening LevelDB in %s\n", path.string()); } leveldb::Status status = leveldb::DB::Open(options, path.string(), &pdb); |