Skip to content

Commit 39ddaeb

Browse files
committed
Merge pull request #6551
243b80d Handle leveldb::DestroyDB() errors on wipe failure (Adam Weiss)
2 parents bb4faee + 243b80d commit 39ddaeb

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/leveldbwrapper.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ CLevelDBWrapper::CLevelDBWrapper(const boost::filesystem::path& path, size_t nCa
5858
} else {
5959
if (fWipe) {
6060
LogPrintf("Wiping LevelDB in %s\n", path.string());
61-
leveldb::DestroyDB(path.string(), options);
61+
leveldb::Status result = leveldb::DestroyDB(path.string(), options);
62+
HandleError(result);
6263
}
6364
TryCreateDirectory(path);
6465
LogPrintf("Opening LevelDB in %s\n", path.string());

0 commit comments

Comments
 (0)