Selaa lähdekoodia

cache sync: fix incorrect .integrity location for .compact

Marian Beermann 8 vuotta sitten
vanhempi
sitoutus
92a01f9d6c
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      src/borg/cache.py

+ 1 - 1
src/borg/cache.py

@@ -601,7 +601,7 @@ Chunk index:    {0.total_unique_chunks:20d} {0.total_chunks:20d}"""
             fn_tmp = mkpath(archive_id, suffix='.tmp')
             try:
                 with DetachedIntegrityCheckedFile(path=fn_tmp, write=True,
-                                                  filename=bin_to_hex(archive_id)) as fd:
+                                                  filename=bin_to_hex(archive_id) + '.compact') as fd:
                     chunk_idx.write(fd)
             except Exception:
                 os.unlink(fn_tmp)