Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasEC (0.04 sec)

  1. cmd/metacache-entries.go

    		}
    		return other, false
    	}
    
    	// Check if each version matches...
    	for i, eVer := range eVers.versions {
    		oVer := oVers.versions[i]
    		if eVer.header != oVer.header {
    			if eVer.header.hasEC() != oVer.header.hasEC() {
    				// One version has EC and the other doesn't - may have been written later.
    				// Compare without considering EC.
    				a, b := eVer.header, oVer.header
    				a.EcN, a.EcM = 0, 0
    				b.EcN, b.EcM = 0, 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 08 15:29:58 UTC 2024
    - 24.1K bytes
    - Viewed (0)
  2. cmd/xl-storage-format-v2.go

    	return ok
    }
    
    func (x xlMetaV2VersionHeader) matchesEC(o xlMetaV2VersionHeader) bool {
    	if x.hasEC() && o.hasEC() {
    		return x.EcN == o.EcN && x.EcM == o.EcM
    	} // if no EC header this is an older object
    	return true
    }
    
    // hasEC will return true if the version has erasure coding information.
    func (x xlMetaV2VersionHeader) hasEC() bool {
    	return x.EcM > 0 && x.EcN > 0
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 22 15:30:50 UTC 2024
    - 64K bytes
    - Viewed (1)
Back to top