|
|
|
@ -58,7 +58,8 @@ CLevelDBWrapper::CLevelDBWrapper(const boost::filesystem::path& path, size_t nCa
@@ -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()); |
|
|
|
|