From 4a6fcc26d7115d76b18bdba0f08d337bd442caa8 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 8 Nov 2024 19:43:44 +0100 Subject: [PATCH] use stable chunkindex list order --- src/borg/cache.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/borg/cache.py b/src/borg/cache.py index 0953460f2..696db4d79 100644 --- a/src/borg/cache.py +++ b/src/borg/cache.py @@ -681,12 +681,13 @@ def try_upgrade_to_b14(repository): def list_chunkindex_hashes(repository): - hashes = set() + hashes = [] for info in repository.store_list("cache"): info = ItemInfo(*info) # RPC does not give namedtuple if info.name.startswith("chunks."): hash = info.name.removeprefix("chunks.") - hashes.add(hash) + hashes.append(hash) + hashes = sorted(hashes) logger.debug(f"cached chunk indexes: {hashes}") return hashes