Merge pull request #9372 from mr-raj12/remove-try-upgrade-to-b14
Some checks are pending
Lint / lint (push) Waiting to run
CI / lint (push) Waiting to run
CI / security (push) Waiting to run
CI / asan_ubsan (push) Blocked by required conditions
CI / native_tests (push) Blocked by required conditions
CI / vm_tests (Haiku, false, haiku, r1beta5) (push) Blocked by required conditions
CI / vm_tests (NetBSD, false, netbsd, 10.1) (push) Blocked by required conditions
CI / vm_tests (OmniOS, false, omnios, r151056) (push) Blocked by required conditions
CI / vm_tests (OpenBSD, false, openbsd, 7.7) (push) Blocked by required conditions
CI / vm_tests (borg-freebsd-14-x86_64-gh, FreeBSD, true, freebsd, 14.3) (push) Blocked by required conditions
CI / windows_tests (push) Blocked by required conditions
CodeQL / Analyze (push) Waiting to run

cache: remove try_upgrade_to_b14() legacy migration, fixes #9371
This commit is contained in:
TW 2026-02-19 14:08:22 +01:00 committed by GitHub
commit 9533b5083e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -694,17 +694,6 @@ class FilesCacheMixin:
)
def try_upgrade_to_b14(repository):
# TODO: remove this before 2.0.0 release
# we just delete any present chunk index cache here, it is invalid due to the
# refcount -> flags change we did and due to the different CHUNKINDEX_HASH_SEED.
for name in "chunks_hash", "chunks":
try:
repository.store_delete(f"cache/{name}")
except (Repository.ObjectNotFound, StoreObjectNotFound):
pass # likely already upgraded
def list_chunkindex_hashes(repository):
hashes = []
for info in repository.store_list("cache"):
@ -807,7 +796,6 @@ def read_chunkindex_from_repo_cache(repository, hash):
def build_chunkindex_from_repo(repository, *, disable_caches=False, cache_immediately=False):
try_upgrade_to_b14(repository)
# first, try to build a fresh, mostly complete chunk index from centrally cached chunk indexes:
if not disable_caches:
hashes = list_chunkindex_hashes(repository)