mirror of
https://github.com/kopia/kopia.git
synced 2026-02-01 18:23:36 -05:00
We were incorrectly assigning the same content cache key regardless of the storage format of the content (compression format, etc.) This means that if a content has both compressed and non-compressed entry in the index, it would sometimes get cached incorrectly and the subsequent reads would fail. Clearing the cache would fix the issue - this change appends format-specific suffix to cache keys, so that clearing the cache is not needed. Huge thanks to Mark Derricutt who helped get to the bottom of this on Slack. Fix #1843