- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for objectPartIndexNums (0.21 sec)
-
cmd/erasure-metadata.go
for i, part := range parts { if partNumber == part.Number { return i } } return -1 } // objectPartIndexNums returns the index of the specified part number. // Returns -1 if the part cannot be found. func objectPartIndexNums(parts []int, partNumber int) int { for i, part := range parts { if part != 0 && partNumber == part { return i } } return -1 }
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Fri Sep 06 09:42:21 UTC 2024 - 21.2K bytes - Viewed (0) -
cmd/erasure-multipart.go
if errors.Is(err, errFileNotFound) { return result, nil } return result, toObjectErr(err, bucket, object, uploadID) } if len(partNums) == 0 { return result, nil } start := objectPartIndexNums(partNums, partNumberMarker) if start != -1 { partNums = partNums[start+1:] } result.Parts = make([]PartInfo, 0, len(partNums)) partMetaPaths := make([]string, len(partNums))
Registered: Sun Oct 27 19:28:09 UTC 2024 - Last Modified: Sun Sep 29 22:40:36 UTC 2024 - 44.7K bytes - Viewed (0)