Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for sortsBefore (0.48 sec)

  1. cmd/xl-storage-format-v2.go

    func (x xlMetaV2VersionHeader) hasEC() bool {
    	return x.EcM > 0 && x.EcN > 0
    }
    
    // sortsBefore can be used as a tiebreaker for stable sorting/selecting.
    // Returns false on ties.
    func (x xlMetaV2VersionHeader) sortsBefore(o xlMetaV2VersionHeader) bool {
    	if x == o {
    		return false
    	}
    	// Prefer newest modtime.
    	if x.ModTime != o.ModTime {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
  2. cmd/metacache-entries.go

    			}
    			if !strict && eVer.header.matchesNotStrict(oVer.header) {
    				if prefer == nil {
    					if eVer.header.sortsBefore(oVer.header) {
    						prefer = e
    					} else {
    						prefer = other
    					}
    				}
    				continue
    			}
    			if prefer != nil {
    				return prefer, false
    			}
    
    			if eVer.header.sortsBefore(oVer.header) {
    				return e, false
    			}
    			return other, false
    		}
    	}
    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