Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 73 for global_context (0.2 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. cmd/iam.go

    		var roleArn string
    		if len(roleArns) == 0 {
    			iamLogIf(GlobalContext,
    				fmt.Errorf("parentUser: %s had no roleArns mapped!", parentUser))
    			continue
    		}
    		roleArn = roleArns[0]
    		u, err := sys.OpenIDConfig.LookupUser(roleArn, puInfo.subClaimValue)
    		if err != nil {
    			iamLogIf(GlobalContext, err)
    			continue
    		}
    		// If user is set to "disabled", we will remove them
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Oct 15 17:00:45 GMT 2025
    - 76.5K bytes
    - Click Count (0)
  2. cmd/namespace-lock.go

    	if !locked { // We failed to get the lock
    		// Decrement ref count since we failed to get the lock
    		n.lockMapMutex.Lock()
    		n.lockMap[resource].ref--
    		if n.lockMap[resource].ref < 0 {
    			logger.CriticalIf(GlobalContext, errors.New("resource reference count was lower than 0"))
    		}
    		if n.lockMap[resource].ref == 0 {
    			// Remove from the map if there are no more references.
    			delete(n.lockMap, resource)
    		}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 9.2K bytes
    - Click Count (0)
  3. cmd/config-migrate.go

    		logger.Info("Older config found but is not readable %s, proceeding to read config from other places", err)
    	}
    	if osIsNotExist(err) || osIsPermission(err) || len(data) == 0 {
    		data, err = readConfig(GlobalContext, objAPI, configFile)
    		if err != nil {
    			// when config.json is not found, then we freshly initialize.
    			if errors.Is(err, errConfigNotFound) {
    				return newServerCfg()
    			}
    			return nil, err
    		}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.4K bytes
    - Click Count (0)
  4. cmd/erasure-server-pool-decom.go

    	dctx, z.decommissionCancelers[idx] = context.WithCancel(GlobalContext)
    	z.poolMetaMutex.Unlock()
    
    	// Generate an empty request info so it can be directly modified later by audit
    	dctx = logger.SetReqInfo(dctx, &logger.ReqInfo{})
    
    	if err := z.decommissionInBackground(dctx, idx); err != nil {
    		decomLogIf(GlobalContext, err)
    		decomLogIf(GlobalContext, z.DecommissionFailed(dctx, idx))
    		return
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 42.2K bytes
    - Click Count (1)
  5. cmd/api-headers.go

    // Encodes the response headers into XML format.
    func encodeResponse(response any) []byte {
    	var buf bytes.Buffer
    	buf.WriteString(xml.Header)
    	if err := xml.NewEncoder(&buf).Encode(response); err != nil {
    		bugLogIf(GlobalContext, err)
    		return nil
    	}
    	return buf.Bytes()
    }
    
    // Use this encodeResponseList() to support control characters
    // this function must be used by only ListObjects() for objects
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 8.6K bytes
    - Click Count (0)
  6. cmd/erasure-server-pool-rebalance.go

    			}
    
    			stopFn := globalRebalanceMetrics.log(rebalanceMetricSaveMetadata, poolIdx, traceMsg)
    			err := z.saveRebalanceStats(GlobalContext, poolIdx, rebalSaveStats)
    			stopFn(0, err)
    			if err == nil && notify {
    				globalNotificationSys.LoadRebalanceMeta(GlobalContext, false)
    			}
    			rebalanceLogIf(GlobalContext, err)
    
    			if quit {
    				return
    			}
    
    			timer.Reset(randSleepFor())
    		}
    	}()
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 28.7K bytes
    - Click Count (0)
  7. cmd/bucket-replication-stats.go

    	qTimer          *time.Ticker // ticker for calculating queue stats
    }
    
    func (r *ReplicationStats) trackEWMA() {
    	for {
    		select {
    		case <-r.movingAvgTicker.C:
    			r.updateMovingAvg()
    		case <-GlobalContext.Done():
    			return
    		}
    	}
    }
    
    func (r *ReplicationStats) updateMovingAvg() {
    	r.RLock()
    	for _, s := range r.Cache {
    		for _, st := range s.Stats {
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Feb 18 16:25:55 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  8. cmd/data-usage.go

    		if bui.ReplicatedSizeV1 > 0 || bui.ReplicationFailedCountV1 > 0 ||
    			bui.ReplicationFailedSizeV1 > 0 || bui.ReplicationPendingCountV1 > 0 {
    			cfg, _ := getReplicationConfig(GlobalContext, bucket)
    			if cfg != nil && cfg.RoleArn != "" {
    				if dataUsageInfo.ReplicationInfo == nil {
    					dataUsageInfo.ReplicationInfo = make(map[string]BucketTargetUsageInfo)
    				}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu May 09 00:51:34 GMT 2024
    - 5.6K bytes
    - Click Count (0)
  9. cmd/metrics-v2.go

    		ml := []MetricV2{}
    
    		// metrics pertinent to site replication - overall roll up.
    		if globalSiteReplicationSys.isEnabled() {
    			m, err := globalSiteReplicationSys.getSiteMetrics(GlobalContext)
    			if err != nil {
    				metricsLogIf(GlobalContext, err)
    				return ml
    			}
    			ml = append(ml, MetricV2{
    				Description: getRepReceivedBytesMD(clusterMetricNamespace),
    				Value:       float64(m.ReplicaSize),
    			})
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 133.6K bytes
    - Click Count (0)
  10. cmd/endpoint.go

    	hosts := make([]*xnet.Host, len(peers))
    	for i, hostStr := range peers {
    		if hostStr == localPeer {
    			continue
    		}
    		host, err := xnet.ParseHost(hostStr)
    		if err != nil {
    			internalLogIf(GlobalContext, err)
    			continue
    		}
    		hosts[i] = host
    	}
    
    	return hosts
    }
    
    // peers will return all peers, including local.
    // The local peer is returned as a separate string.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 34.5K bytes
    - Click Count (0)
Back to Top