diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-08-17 16:50:55 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2015-08-17 16:52:57 +0200 |
commit | 39ddaeb8fe3a2493401b7182804f3c262c1a213c (patch) | |
tree | 7f9ccf23d0fd0102e2156e08cf3e5a587b4a14c9 /src | |
parent | bb4faee21e61c8449fa5a3186e3e9a22d6b11d7f (diff) | |
parent | 243b80d29235b07f8a26fb51e2af3a949c8fc1fd (diff) |
Merge pull request #6551
243b80d Handle leveldb::DestroyDB() errors on wipe failure (Adam Weiss)
Diffstat (limited to 'src')
-rw-r--r-- | src/leveldbwrapper.cpp | 3 |
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()); |