Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 228 for elseif (0.43 sec)

  1. cmd/metrics-v2.go

    				if !ok {
    					clusterObjectSizesHistogram[k] = v
    				} else {
    					v1 += v
    					clusterObjectSizesHistogram[k] = v1
    				}
    			}
    			for k, v := range usage.ObjectVersionsHistogram {
    				v1, ok := clusterVersionsHistogram[k]
    				if !ok {
    					clusterVersionsHistogram[k] = v
    				} else {
    					v1 += v
    					clusterVersionsHistogram[k] = v1
    				}
    			}
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 22:01:31 GMT 2024
    - 132.6K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool-rebalance.go

    	if err != nil {
    		if errors.Is(err, errConfigNotFound) {
    			return nil
    		}
    		return err
    	}
    
    	z.rebalMu.Lock()
    	if len(r.PoolStats) == len(z.serverPools) {
    		z.rebalMeta = r
    	} else {
    		z.updateRebalanceStats(ctx)
    	}
    	z.rebalMu.Unlock()
    
    	return nil
    }
    
    // updates rebalance.bin from let's say 2 pool setup in the middle
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  3. cmd/api-errors.go

    	case dns.ErrBucketConflict:
    		apiErr = ErrBucketAlreadyExists
    	default:
    		if strings.Contains(err.Error(), "request declared a Content-Length") {
    			apiErr = ErrIncompleteBody
    		} else {
    			apiErr = ErrInternalError
    		}
    	}
    
    	return apiErr
    }
    
    var noError = APIError{}
    
    // toAPIError - Converts embedded errors. Convenience
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  4. cmd/object_api_suite_test.go

    		if err.Error() != "Object not found: bucket/dir1" {
    			t.Errorf("%s: Expected the Error message to be `%s`, but instead found `%s`", instanceType, "Object not found: bucket/dir1", err.Error())
    		}
    	} else {
    		if err.Error() != "fails" {
    			t.Errorf("%s: Expected the Error message to be `%s`, but instead found it to be `%s`", instanceType, "fails", err.Error())
    		}
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 32.3K bytes
    - Viewed (0)
  5. cmd/sts-handlers_test.go

    			"scopes=openid,groups",
    			fmt.Sprintf("redirect_uri=%s", testApp.RedirectURL),
    		}
    		if rolePolicies[i] != "" {
    			configCmds = append(configCmds, fmt.Sprintf("role_policy=%s", rolePolicies[i]))
    		} else {
    			configCmds = append(configCmds, "claim_name=groups")
    		}
    		_, err := s.adm.SetConfigKV(ctx, strings.Join(configCmds, " "))
    		if err != nil {
    			return fmt.Errorf("unable to setup OpenID for tests: %v", err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  6. cmd/iam-store.go

    			return
    		}
    		if !isGroup {
    			if userType == stsUser {
    				cache.iamSTSPolicyMap.Delete(name)
    			} else {
    				cache.iamUserPolicyMap.Delete(name)
    			}
    		} else {
    			cache.iamGroupPolicyMap.Delete(name)
    		}
    	} else {
    
    		if err = store.saveMappedPolicy(ctx, name, userType, isGroup, newPolicyMapping); err != nil {
    			return
    		}
    		if !isGroup {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  7. cmd/metacache-server-pool.go

    			o.Create = false
    			o.ID = mustGetUUID()
    		} else {
    			if c.fileNotFound {
    				// No cache found, no entries found.
    				return entries, io.EOF
    			}
    			if c.status == scanStateError || c.status == scanStateNone {
    				o.ID = ""
    				o.Create = false
    				o.debugln("scan status", c.status, " - waiting a roundtrip to create")
    			} else {
    				// Continue listing
    				o.ID = c.id
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.8K bytes
    - Viewed (0)
  8. cmd/config-current.go

    			errs = append(errs, fmt.Errorf("Unable to apply heal config: %w", err))
    		} else {
    			globalHealConfig.Update(healCfg)
    		}
    	case config.BatchSubSys:
    		batchCfg, err := batch.LookupConfig(s[config.BatchSubSys][config.Default])
    		if err != nil {
    			errs = append(errs, fmt.Errorf("Unable to apply batch config: %w", err))
    		} else {
    			globalBatchConfig.Update(batchCfg)
    		}
    	case config.ScannerSubSys:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 30.8K bytes
    - Viewed (0)
  9. cmd/xl-storage.go

    	}
    
    	// Return an error if ODirect is not supported. Single disk will have
    	// oDirect off.
    	if globalIsErasureSD || !disk.ODirectPlatform {
    		s.oDirect = false
    	} else if err := s.checkODirectDiskSupport(info.FSType); err == nil {
    		s.oDirect = true
    	} else {
    		return s, err
    	}
    
    	// Initialize DiskInfo cache
    	s.diskInfoCache.InitOnce(time.Second, cachevalue.Opts{},
    		func() (DiskInfo, error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  10. internal/handlers/proxy.go

    	var scheme string
    
    	// Retrieve the scheme from X-Forwarded-Proto.
    	if proto := r.Header.Get(xForwardedProto); proto != "" {
    		scheme = strings.ToLower(proto)
    	} else if proto = r.Header.Get(xForwardedScheme); proto != "" {
    		scheme = strings.ToLower(proto)
    	} else if proto := r.Header.Get(forwarded); proto != "" {
    		// match should contain at least two elements if the protocol was
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 22 00:56:55 GMT 2023
    - 5.1K bytes
    - Viewed (0)
Back to top