Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for defer (0.18 sec)

  1. cmd/bucket-replication.go

    	s.Lock()
    	defer s.Unlock()
    
    	m := s.statusMap[opts.bucket]
    	st := m.TargetsMap[opts.arn]
    	st.LastUpdate = UTCNow()
    	st.ResyncStatus = status
    	m.TargetsMap[opts.arn] = st
    	m.LastUpdate = UTCNow()
    	s.statusMap[opts.bucket] = m
    
    	ctx, cancel := context.WithTimeout(context.Background(), time.Second)
    	defer cancel()
    	saveResyncStatus(ctx, opts.bucket, m, objAPI)
    }
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 112.2K bytes
    - Viewed (1)
  2. cmd/admin-handlers.go

    		return
    	}
    
    	defer nsLock.Unlock(lkctx)
    	healthCtx, healthCancel := context.WithTimeout(lkctx.Context(), deadline)
    	defer healthCancel()
    
    	go fetchHealthInfo(healthCtx, objectAPI, &query, healthInfoCh, healthInfo)
    
    	setCommonHeaders(w)
    	setEventStreamHeaders(w)
    	w.WriteHeader(http.StatusOK)
    
    	ticker := time.NewTicker(5 * time.Second)
    	defer ticker.Stop()
    
    	for {
    		select {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 29 17:39:04 GMT 2024
    - 97.8K bytes
    - Viewed (2)
  3. cmd/site-replication.go

    		time.Sleep(duration)
    	}
    	c.RLock()
    	defer c.RUnlock()
    	if c.enabled {
    		logger.Info("Cluster replication initialized")
    	}
    	return nil
    }
    
    func (c *SiteReplicationSys) loadFromDisk(ctx context.Context, objAPI ObjectLayer) error {
    	buf, err := readConfig(ctx, objAPI, getSRStateFilePath())
    	if err != nil {
    		if errors.Is(err, errConfigNotFound) {
    			c.Lock()
    			defer c.Unlock()
    			c.state = srState{}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 184.2K bytes
    - Viewed (1)
  4. cmd/object-handlers.go

    	}
    
    	var buf *bytebufferpool.ByteBuffer
    	if update {
    		if globalCacheConfig.MatchesSize(objInfo.Size) {
    			buf = bytebufferpool.Get()
    			defer bytebufferpool.Put(buf)
    		}
    		defer func() {
    			var data []byte
    			if buf != nil {
    				data = buf.Bytes()
    			}
    
    			asize, err := objInfo.GetActualSize()
    			if err != nil {
    				asize = objInfo.Size
    			}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 20:15:54 GMT 2024
    - 125.2K bytes
    - Viewed (0)
  5. cmd/object-handlers_test.go

    	ExecObjectLayerAPINilTest(t, nilBucket, nilObject, instanceType, apiRouter, nilReq)
    }
    
    func TestAPIHeadObjectHandlerWithEncryption(t *testing.T) {
    	globalPolicySys = NewPolicySys()
    	defer func() { globalPolicySys = nil }()
    
    	defer DetectTestLeak(t)()
    	ExecObjectLayerAPITest(t, testAPIHeadObjectHandlerWithEncryption, []string{"NewMultipart", "PutObjectPart", "CompleteMultipart", "GetObject", "PutObject", "HeadObject"})
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 160K bytes
    - Viewed (0)
  6. cmd/metrics-v2.go

    // `api` label values.
    func getHistogramMetrics(hist *prometheus.HistogramVec, desc MetricDescription, toLowerAPILabels bool) []MetricV2 {
    	ch := make(chan prometheus.Metric)
    	go func() {
    		defer xioutil.SafeClose(ch)
    		// Collects prometheus metrics from hist and sends it over ch
    		hist.Collect(ch)
    	}()
    
    	// Converts metrics received into internal []Metric type
    	var metrics []MetricV2
    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)
  7. doc/go1.17_spec.html

    It may be used only as the final non-empty statement in such a clause.
    </p>
    
    <pre class="ebnf">
    FallthroughStmt = "fallthrough" .
    </pre>
    
    
    <h3 id="Defer_statements">Defer statements</h3>
    
    <p>
    A "defer" statement invokes a function whose execution is deferred
    to the moment the surrounding function returns, either because the
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/util/concurrent/ClosingFuture.java

            ListenableFuture<U> applyClosingFunction(
                ClosingFunction<? super V, U> transformation, @ParametricNullness V input)
                throws Exception {
          // TODO(dpb): Consider ways to defer closing without creating a separate CloseableList.
          CloseableList newCloseables = new CloseableList();
          try {
            return immediateFuture(transformation.apply(newCloseables.closer, input));
          } finally {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 98.5K bytes
    - Viewed (0)
  9. cmd/server_test.go

    	// Run the test with -race flag to utilize this
    	var wg sync.WaitGroup
    	for i := 0; i < testConcurrencyLevel; i++ {
    		wg.Add(1)
    		go func() {
    			defer wg.Done()
    			// HTTP request to create the bucket.
    			request, err := newTestSignedRequest(http.MethodPut, getMakeBucketURL(s.endPoint, bucketName),
    				0, nil, s.accessKey, s.secretKey, s.signer)
    			c.Assert(err, nil)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 108K bytes
    - Viewed (0)
  10. operator/cmd/mesh/testdata/manifest-generate/data-snapshot.tar.gz

    added into the Gateway Pods. See # https://kubernetes.io/docs/concepts/storage/volumes/. volumeMounts: [] # Configure this to a higher priority class in order to make sure your Istio gateway pods # will not be killed because of low priority class. # Refer to https://kubernetes.io/docs/concepts/configuration/pod-priority-preemption/#priorityclass # for more detail. priorityClassName: "" manifests/charts/gateway/values.schema.json { "$schema": "http://json-schema.org/schema#", "type": "object", "additionalProperties":...
    Others
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Wed Jan 10 05:10:03 GMT 2024
    - 198.1K bytes
    - Viewed (1)
Back to top