- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for IndexFunc (0.36 sec)
-
cmd/erasure-healing-common.go
return checkPartVolumeNotFound case errDiskNotFound: return checkPartDiskNotFound default: return checkPartUnknown } } func partNeedsHealing(partErrs []int) bool { return slices.IndexFunc(partErrs, func(i int) bool { return i != checkPartSuccess && i != checkPartUnknown }) > -1 } func countPartNotSuccess(partErrs []int) (c int) { for _, pe := range partErrs { if pe != checkPartSuccess { c++
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 12K bytes - Viewed (0) -
cmd/sts-handlers_test.go
Policy: []string{policy}, }) if err != nil { c.Fatalf("GetLDAPPolicyEntities should not fail: %v", err) } { // Check that the mapping we created exists. idx := slices.IndexFunc(policyResult.PolicyMappings, func(e madmin.PolicyEntities) bool { return e.Policy == policy && slices.Contains(e.Groups, actualGroupDN) }) if idx < 0 {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 100.2K bytes - Viewed (1) -
cmd/erasure-object.go
// then add only one delete marker if requested sort.SliceStable(fivs.Versions, func(i, j int) bool { return !fivs.Versions[i].Deleted }) if idx := slices.IndexFunc(fivs.Versions, func(fi FileInfo) bool { return fi.Deleted }); idx > -1 { fivs.Versions = fivs.Versions[:idx+1] } dedupVersions = append(dedupVersions, fivs) }
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Sep 07 16:13:09 UTC 2025 - 80.4K bytes - Viewed (0)