aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2015-08-17 16:50:55 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2015-08-17 16:52:57 +0200
commit39ddaeb8fe3a2493401b7182804f3c262c1a213c (patch)
tree7f9ccf23d0fd0102e2156e08cf3e5a587b4a14c9 /src
parentbb4faee21e61c8449fa5a3186e3e9a22d6b11d7f (diff)
parent243b80d29235b07f8a26fb51e2af3a949c8fc1fd (diff)
Merge pull request #6551
243b80d Handle leveldb::DestroyDB() errors on wipe failure (Adam Weiss)
Diffstat (limited to 'src')
-rw-r--r--src/leveldbwrapper.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leveldbwrapper.cpp b/src/leveldbwrapper.cpp
index c353dfa6d9..26cacf95ae 100644
--- a/src/leveldbwrapper.cpp
+++ b/src/leveldbwrapper.cpp
@@ -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());