Permalink
Browse files

Merge pull request #6551

243b80d Handle leveldb::DestroyDB() errors on wipe failure (Adam Weiss)
  • Loading branch information...
laanwj committed Aug 17, 2015
2 parents bb4faee + 243b80d commit 39ddaeb8fe3a2493401b7182804f3c262c1a213c
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/leveldbwrapper.cpp
View
@@ -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());

0 comments on commit 39ddaeb

Please sign in to comment.