Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for findVersionIndex (0.11 sec)

  1. cmd/storage-datatypes.go

    	// latest version.
    	LatestModTime time.Time `msg:"lm"`
    
    	Versions     []FileInfo `msg:"vs"`
    	FreeVersions []FileInfo `msg:"fvs"`
    }
    
    // findVersionIndex will return the version index where the version
    // was found. Returns -1 if not found.
    func (f *FileInfoVersions) findVersionIndex(v string) int {
    	if f == nil || v == "" {
    		return -1
    	}
    	if v == nullVersionID {
    		for i, ver := range f.Versions {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  2. cmd/metacache-entries.go

    					continue
    				}
    			}
    
    			fiv, err := entry.fileInfoVersions(bucket)
    			if err != nil {
    				continue
    			}
    
    			fiVersions := fiv.Versions
    			if afterV != "" {
    				vidMarkerIdx := fiv.findVersionIndex(afterV)
    				if vidMarkerIdx >= 0 {
    					fiVersions = fiVersions[vidMarkerIdx+1:]
    				}
    				afterV = ""
    			}
    
    			for _, version := range fiVersions {
    				if !version.VersionPurgeStatus().Empty() {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
Back to top