Empty files are detected as corrupted by result_get.
// object code.
static struct file_hash *cached_obj_hash;
-// Full path to the file containing everything
+// Full path to the file containing the result
// (cachedir/a/b/cdef[...]-size.result).
static char *cached_result;
cc_log("Cache file %s not in cache", cached_result);
return;
}
- if (st.st_size == 0) {
- cc_log("Invalid (empty) cache file %s in cache", cached_result);
- x_unlink(cached_result);
- return;
- }
MTR_BEGIN("cache", "from_cache");