Skip to content

Commit

Permalink
Merge pull request #6551
Browse files Browse the repository at this point in the history
243b80d Handle leveldb::DestroyDB() errors on wipe failure (Adam Weiss)
  • Loading branch information
laanwj committed Aug 17, 2015
2 parents bb4faee + 243b80d commit 39ddaeb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/leveldbwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 39ddaeb

Please sign in to comment.