Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for GetLock (0.31 sec)

  1. cmd/admin-handlers.go

    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrNotImplemented), r.URL)
    		return
    	}
    
    	nsLock := objectAPI.NewNSLock(minioMetaBucket, "site-net-perf")
    	lkctx, err := nsLock.GetLock(ctx, globalOperationTimeout)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(toAPIErrorCode(ctx, err)), r.URL)
    		return
    	}
    	ctx = lkctx.Context()
    	defer nsLock.Unlock(lkctx)
    
    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)
  2. cmd/bucket-replication.go

    	}
    
    	// Lock the object name before starting replication operation.
    	// Use separate lock that doesn't collide with regular objects.
    	lk := objectAPI.NewNSLock(bucket, "/[replicate]/"+dobj.ObjectName)
    	lkctx, err := lk.GetLock(ctx, globalOperationTimeout)
    	if err != nil {
    		globalReplicationPool.queueMRFSave(dobj.ToMRFEntry())
    		sendEvent(eventArgs{
    			BucketName: bucket,
    			Object: ObjectInfo{
    				Bucket:       bucket,
    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)
  3. cmd/site-replication.go

    		}
    	}
    	return nil
    }
    
    const siteHealTimeInterval = 30 * time.Second
    
    func (c *SiteReplicationSys) startHealRoutine(ctx context.Context, objAPI ObjectLayer) {
    	ctx, cancel := globalLeaderLock.GetLock(ctx)
    	defer cancel()
    
    	healTimer := time.NewTimer(siteHealTimeInterval)
    	defer healTimer.Stop()
    
    	var maxRefreshDurationSecondsForLog float64 = 10 // 10 seconds..
    
    	for {
    		select {
    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)
Back to top