- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for reduceCommonVersions (0.14 sec)
-
cmd/erasure-metadata-utils.go
} // figure out the most commonVersions across disk that satisfies // 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 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 11.7K bytes - Viewed (0) -
cmd/erasure-object.go
UndoWrite: true, OldDataDir: dataDirs[index], }) }, 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) {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Oct 31 22:10:24 UTC 2024 - 78.8K bytes - Viewed (0)