浏览代码

invalidate existing cache by incrementing the ChunkIndex seed

we changed the semantics (and name) of the first tuple element:
refcount -> flags

thus, better invalidate existing cache.
Thomas Waldmann 7 月之前
父节点
当前提交
2ab3c163ce
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/borg/cache.py

+ 1 - 1
src/borg/cache.py

@@ -671,7 +671,7 @@ def load_chunks_hash(repository) -> bytes:
     return hash
 
 
-CHUNKINDEX_HASH_SEED = 1
+CHUNKINDEX_HASH_SEED = 2
 
 
 def write_chunkindex_to_repo_cache(repository, chunks, *, clear=False, force_write=False):