Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newtgts (0.07 sec)

  1. cmd/bucket-targets.go

    			if t.Endpoint == tgt.Endpoint {
    				return BucketRemoteAlreadyExists{Bucket: t.TargetBucket}
    			}
    		}
    		newtgts[idx] = t
    	}
    	if !found && !update {
    		newtgts = append(newtgts, *tgt)
    	}
    
    	sys.targetsMap[bucket] = newtgts
    	sys.arnRemotesMap[tgt.Arn] = arnTarget{Client: clnt}
    	sys.updateBandwidthLimit(bucket, tgt.Arn, tgt.BandwidthLimit)
    	return nil
    }
    
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 20.9K bytes
    - Viewed (0)
  2. internal/logger/targets.go

    		currentTgt, ok := oldTargets[i].(*http.Target)
    		if !ok {
    			continue
    		}
    		var newTgt *http.Target
    
    		for ii := range tgts {
    			if currentTgt.Name() == tgts[ii].Name() {
    				newTgt = tgts[ii]
    				currentTgt.AssignMigrateTarget(newTgt)
    				http.CreateOrAdjustGlobalBuffer(currentTgt, newTgt)
    				break
    			}
    		}
    	}
    
    	for _, t := range tgts {
    		err := t.Init(ctx)
    		if err != nil {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Mon Jun 03 15:44:50 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. internal/logger/target/http/http.go

    // which are used to migrate log entries between old and new targets.
    func CreateOrAdjustGlobalBuffer(currentTgt *Target, newTgt *Target) {
    	logChLock.Lock()
    	defer logChLock.Unlock()
    
    	requiredCap := currentTgt.config.QueueSize + (currentTgt.config.BatchSize * int(currentTgt.maxWorkers))
    	currentCap := 0
    	name := newTgt.Name()
    
    	currentBuff, ok := logChBuffers[name]
    	if !ok {
    Registered: Sun Oct 27 19:28:09 UTC 2024
    - Last Modified: Wed Sep 11 22:20:42 UTC 2024
    - 15.6K bytes
    - Viewed (0)
Back to top