Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
resources/client: also repair/remove LevelDB for IO errors (renaming …
…failed, missing files)
  • Loading branch information
blattersturm committed Jul 4, 2019
1 parent 0b39156 commit a60a53b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -25,7 +25,7 @@ struct DatabaseHolder

if (!status.ok())
{
if (status.IsCorruption())
if (status.IsCorruption() || status.IsIOError())
{
leveldb::Options repairOptions;
repairOptions.reuse_logs = false;
Expand Down
Expand Up @@ -35,7 +35,7 @@ void ResourceCache::OpenDatabase()

auto status = leveldb::DB::Open(options, m_cachePath + "/db/", &dbPointer);

if (status.IsCorruption())
if (status.IsCorruption() || status.IsIOError())
{
leveldb::Options repairOptions;
repairOptions.reuse_logs = false;
Expand Down

0 comments on commit a60a53b

Please sign in to comment.