Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for reduceCommonDataDir (0.08 sec)

  1. cmd/erasure-metadata-utils.go

    	return []byte{}
    }
    
    // figure out the most commonVersions across disk that satisfies
    // the 'writeQuorum' this function returns '0' if quorum cannot
    // be achieved and disks have too many inconsistent versions.
    func reduceCommonDataDir(dataDirs []string, writeQuorum int) (dataDir string) {
    	dataDirsCount := make(map[string]int)
    	for _, ddir := range dataDirs {
    		dataDirsCount[ddir]++
    	}
    
    	max := 0
    	for ddir, count := range dataDirsCount {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 11.7K bytes
    - Viewed (0)
Back to top