Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for objectPartIndexNums (0.13 sec)

  1. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. 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 Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 29 22:40:36 UTC 2024
    - 44.7K bytes
    - Viewed (0)
Back to top