From e5e685fd1f4cfb515ce5fe9c8355aff753155e03 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Sun, 22 Sep 2024 00:36:30 +0200 Subject: [PATCH] cache: fix crash in _build_files_cache --- src/borg/cache.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/borg/cache.py b/src/borg/cache.py index b20bc01d6d..5276b66bba 100644 --- a/src/borg/cache.py +++ b/src/borg/cache.py @@ -432,7 +432,12 @@ def _build_files_cache(self): self._newest_path_hashes.add(path_hash) # add the file to the in-memory files cache entry = FileCacheEntry( - item.get("inode", 0), item.size, int_to_timestamp(ctime_ns), int_to_timestamp(mtime_ns), item.chunks + age=0, + inode=item.get("inode", 0), + size=item.size, + ctime=int_to_timestamp(ctime_ns), + mtime=int_to_timestamp(mtime_ns), + chunks=item.chunks, ) files[path_hash] = msgpack.packb(entry) # takes about 240 Bytes per file # deal with special snapshot / timestamp granularity case, see FAQ: