Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for diskVersions (0.19 sec)

  1. cmd/erasure-metadata-utils.go

    // the 'writeQuorum' this function returns "" if quorum cannot
    // be achieved and disks have too many inconsistent versions.
    func reduceCommonVersions(diskVersions [][]byte, writeQuorum int) (versions []byte) {
    	diskVersionsCount := make(map[uint64]int)
    	for _, versions := range diskVersions {
    		if len(versions) > 0 {
    			diskVersionsCount[binary.BigEndian.Uint64(versions)]++
    		}
    	}
    
    	var commonVersions uint64
    	max := 0
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. cmd/erasure-object.go

    				})
    			}, index)
    		}
    		dg.Wait()
    	}
    	var dataDir string
    	var versions []byte
    	if err == nil {
    		versions = reduceCommonVersions(diskVersions, writeQuorum)
    		for index, dversions := range diskVersions {
    			if errs[index] != nil {
    				continue
    			}
    			if !bytes.Equal(dversions, versions) {
    				if len(dversions) > len(versions) {
    					versions = dversions
    				}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 22:10:24 UTC 2024
    - 78.8K bytes
    - Viewed (0)
Back to top