You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To update the Repository.compact map for the affected segment, the code needs to call LoggedIO.read(segment, offset, existing_id, read_data=False) just to get the size back.
If we had the size information in the repo index (and not just segment and offset), we could save that random read.
The text was updated successfully, but these errors were encountered:
ThomasWaldmann
changed the title
Repository._delete needs a random read access just for the deleted data size
Repository._delete needs a random read access just for the deleted size
Apr 1, 2022
Another place on the client side is LocalCache._fetch_missing_csize, which even fetches all the data, just to determine its csize. This is only needed if --no-cache-sync was used.
Code: https://github.com/borgbackup/borg/blob/1.2.0/src/borg/repository.py#L1241
Used by:
repo.put(existing_id, new_data)
repo.delete(existing_id)
To update the
Repository.compact
map for the affected segment, the code needs to callLoggedIO.read(segment, offset, existing_id, read_data=False)
just to get thesize
back.If we had the size information in the repo index (and not just segment and offset), we could save that random read.
The text was updated successfully, but these errors were encountered: