Browse Source

Merge pull request #6551

243b80d Handle leveldb::DestroyDB() errors on wipe failure (Adam Weiss)
0.13
Wladimir J. van der Laan 9 years ago
parent
commit
39ddaeb8fe
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 3
      src/leveldbwrapper.cpp

3
src/leveldbwrapper.cpp

@ -58,7 +58,8 @@ CLevelDBWrapper::CLevelDBWrapper(const boost::filesystem::path& path, size_t nCa @@ -58,7 +58,8 @@ CLevelDBWrapper::CLevelDBWrapper(const boost::filesystem::path& path, size_t nCa
} else {
if (fWipe) {
LogPrintf("Wiping LevelDB in %s\n", path.string());
leveldb::DestroyDB(path.string(), options);
leveldb::Status result = leveldb::DestroyDB(path.string(), options);
HandleError(result);
}
TryCreateDirectory(path);
LogPrintf("Opening LevelDB in %s\n", path.string());

Loading…
Cancel
Save