Skip to content

Commit

Permalink
fix: calc group cid count
Browse files Browse the repository at this point in the history
  • Loading branch information
cheggaaa committed Sep 23, 2024
1 parent b003c1e commit 1abacd9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,7 @@ func (gc *groupContent) Check(cidRefs map[string]uint64, sumSize uint64) (checkR
Description: fmt.Sprintf("group size mismatch: %d -> %d", gc.entry.Size_, sumSize),
}
fix.GroupEntry.Size_ = sumSize
fix.GroupEntry.CidCount = uint64(len(cidRefs))
checkResults = append(checkResults, fix)
}
return
Expand Down

0 comments on commit 1abacd9

Please sign in to comment.