dist-clang icon indicating copy to clipboard operation
dist-clang copied to clipboard

Do not fail to write entry into malformed SQLite database

Open abyss7 opened this issue 8 years ago • 0 comments

In case of free space shortage or any other reason the SQLite file may become malformed. We need to properly handle this situation:

  • try to repair,
  • drop broken image and recreate it,
  • try to write new entry again.

Otherwise, the daemon asserts here: https://github.com/abyss7/dist-clang/blob/master/src/cache/file_cache.cc#L100

abyss7 avatar Sep 16 '16 12:09 abyss7