mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-03 05:35:58 +00:00
use stable chunkindex list order
This commit is contained in:
parent
d4310dd4cf
commit
4a6fcc26d7
1 changed files with 3 additions and 2 deletions
|
@ -681,12 +681,13 @@ def try_upgrade_to_b14(repository):
|
||||||
|
|
||||||
|
|
||||||
def list_chunkindex_hashes(repository):
|
def list_chunkindex_hashes(repository):
|
||||||
hashes = set()
|
hashes = []
|
||||||
for info in repository.store_list("cache"):
|
for info in repository.store_list("cache"):
|
||||||
info = ItemInfo(*info) # RPC does not give namedtuple
|
info = ItemInfo(*info) # RPC does not give namedtuple
|
||||||
if info.name.startswith("chunks."):
|
if info.name.startswith("chunks."):
|
||||||
hash = info.name.removeprefix("chunks.")
|
hash = info.name.removeprefix("chunks.")
|
||||||
hashes.add(hash)
|
hashes.append(hash)
|
||||||
|
hashes = sorted(hashes)
|
||||||
logger.debug(f"cached chunk indexes: {hashes}")
|
logger.debug(f"cached chunk indexes: {hashes}")
|
||||||
return hashes
|
return hashes
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue