Use BlobHandle in index methods
This commit is contained in:
parent
e3013271a6
commit
aa7a5f19c2
17 changed files with 167 additions and 239 deletions
|
@ -791,7 +791,7 @@ func checkPack(ctx context.Context, r restic.Repository, id restic.ID, size int6
|
|||
|
||||
// Check if blob is contained in index and position is correct
|
||||
idxHas := false
|
||||
for _, pb := range idx.Lookup(blob.ID, blob.Type) {
|
||||
for _, pb := range idx.Lookup(blob.BlobHandle) {
|
||||
if pb.PackID == id && pb.Offset == blob.Offset && pb.Length == blob.Length {
|
||||
idxHas = true
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue