Merge pull request #6551

243b80d Handle leveldb::DestroyDB() errors on wipe failure (Adam Weiss)
This commit is contained in:
Wladimir J. van der Laan 2015-08-17 16:50:55 +02:00
commit 39ddaeb8fe
No known key found for this signature in database
GPG key ID: 74810B012346C9A6

View file

@ -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());