cache: remove try_upgrade_to_b14() legacy migration, fixes #9371#9372
Merged
ThomasWaldmann merged 1 commit intoborgbackup:masterfrom Feb 19, 2026
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9372 +/- ##
=======================================
Coverage 76.44% 76.44%
=======================================
Files 85 85
Lines 14806 14799 -7
Branches 2213 2212 -1
=======================================
- Hits 11318 11313 -5
+ Misses 2810 2808 -2
Partials 678 678 ☔ View full report in Codecov by Sentry. |
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
try_upgrade_to_b14()fromsrc/borg/cache.py— a one-time migration function marked# TODO: remove this before 2.0.0 releaserefcount→flagsrename andCHUNKINDEX_HASH_SEEDchangeexceptbranchbuild_chunkindex_from_repo()call, issuing 2 unnecessarystore_delete()RPCs per cache rebuildread_chunkindex_from_repo_cache(), so this function provides no safety netFixes #9371
Changes
src/borg/cache.pytry_upgrade_to_b14()(lines 697–705) and its call inbuild_chunkindex_from_repo()(line 810)Checklist
master