Pārlūkot izejas kodu

AdhocWithFilesCache: fix call to _maybe_write_chunks_cache

Thomas Waldmann 1 mēnesi atpakaļ
vecāks
revīzija
3d92e0812c
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. 2 1
      src/borg/cache.py

+ 2 - 1
src/borg/cache.py

@@ -1000,7 +1000,8 @@ class AdHocWithFilesCache(FilesCacheMixin, ChunksMixin):
                 logger.debug(f"Chunks index stats: {key}: {value}")
             pi.output("Saving chunks cache")
             # note: cache/chunks.* in repo has a different integrity mechanism
-            self._maybe_write_chunks_cache(self._chunks, force=True, clear=True)
+            now = datetime.now(timezone.utc)
+            self._maybe_write_chunks_cache(now, force=True, clear=True)
             self._chunks = None  # nothing there (cleared!)
         pi.output("Saving cache config")
         self.cache_config.save(self.manifest)