- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for counterMap (0.06 seconds)
-
cmd/erasure-metadata-utils.go
"errors" "hash/crc32" "github.com/minio/pkg/v3/sync/errgroup" ) // counterMap type adds GetValueWithQuorum method to a map[T]int used to count occurrences of values of type T. type counterMap[T comparable] map[T]int // GetValueWithQuorum returns the first key which occurs >= quorum number of times. func (c counterMap[T]) GetValueWithQuorum(quorum int) (T, bool) { var zero T for x, count := range c {
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Fri Aug 29 02:39:48 GMT 2025 - 11.7K bytes - Click Count (0) -
cmd/erasure-metadata.go
type objProps struct { succModTime time.Time numVersions int } // Find the successor mod time and numVersions in quorum, otherwise leave the // candidate as found otherPropsMap := make(counterMap[objProps]) var candidate FileInfo var found bool for i, hash := range metaHashes { if hash == maxHash { if metaArr[i].IsValid() { if !found { candidate = metaArr[i] found = trueCreated: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 21.3K bytes - Click Count (0)