|
|
@ -58,7 +58,8 @@ CLevelDBWrapper::CLevelDBWrapper(const boost::filesystem::path& path, size_t nCa |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
if (fWipe) { |
|
|
|
if (fWipe) { |
|
|
|
LogPrintf("Wiping LevelDB in %s\n", path.string()); |
|
|
|
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); |
|
|
|
TryCreateDirectory(path); |
|
|
|
LogPrintf("Opening LevelDB in %s\n", path.string()); |
|
|
|
LogPrintf("Opening LevelDB in %s\n", path.string()); |
|
|
|