Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 77 for Croock (0.2 sec)

  1. cmd/lock-rest-client.go

    	// no error
    	case dsync.RespLockNotInitialized:
    		err = errLockNotInitialized
    	default:
    		err = errors.New(r.Err)
    	}
    	return ok, err
    }
    
    // RLock calls read lock REST API.
    func (c *lockRESTClient) RLock(ctx context.Context, args dsync.LockArgs) (reply bool, err error) {
    	return c.call(ctx, lockRPCRLock, &args)
    }
    
    // Lock calls lock REST API.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Nov 24 17:07:14 GMT 2023
    - 3.3K bytes
    - Viewed (0)
  2. cmd/lock-rest-server.go

    	// Consequently, if err != nil, reply is always false
    	return l.makeResp(resp, err)
    }
    
    // RLockHandler - Acquires an RLock.
    func (l *lockRESTServer) RLockHandler(args *dsync.LockArgs) (*dsync.LockResp, *grid.RemoteErr) {
    	resp := lockRPCRLock.NewResponse()
    	success, err := l.ll.RLock(context.Background(), *args)
    	if err == nil && !success {
    		err = errLockConflict
    	}
    	return l.makeResp(resp, err)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 21 01:09:35 GMT 2023
    - 5.9K bytes
    - Viewed (0)
  3. cmd/bucket-replication-metrics.go

    	q.Lock()
    	defer q.Unlock()
    	q.srQueueStats.update()
    	for _, s := range q.bucketStats {
    		s.update()
    	}
    }
    
    func (q *queueCache) getBucketStats(bucket string) InQueueMetric {
    	q.RLock()
    	defer q.RUnlock()
    	v, ok := q.bucketStats[bucket]
    	if !ok {
    		return InQueueMetric{}
    	}
    	return InQueueMetric{
    		Curr: QStat{Bytes: float64(v.nowBytes), Count: float64(v.nowCount)},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  4. cmd/site-replication-utils.go

    			sm.resyncStatus[rs.ResyncID] = rs
    		}
    		sm.Unlock()
    	}
    	return nil
    }
    
    func (sm *siteResyncMetrics) report(dID string) *madmin.SiteResyncMetrics {
    	sm.RLock()
    	defer sm.RUnlock()
    	rst, ok := sm.peerResyncMap[dID]
    	if !ok {
    		return nil
    	}
    	rs, ok := sm.resyncStatus[rst.resyncID]
    	if !ok {
    		return nil
    	}
    	m := madmin.SiteResyncMetrics{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 8.9K bytes
    - Viewed (1)
  5. cmd/api-router.go

    )
    
    func newHTTPServerFn() *xhttp.Server {
    	globalObjLayerMutex.RLock()
    	defer globalObjLayerMutex.RUnlock()
    	return globalHTTPServer
    }
    
    func setHTTPServer(h *xhttp.Server) {
    	globalObjLayerMutex.Lock()
    	globalHTTPServer = h
    	globalObjLayerMutex.Unlock()
    }
    
    func newConsoleServerFn() *consoleapi.Server {
    	globalObjLayerMutex.RLock()
    	defer globalObjLayerMutex.RUnlock()
    	return globalConsoleSrv
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 04 18:05:56 GMT 2024
    - 22.8K bytes
    - Viewed (0)
  6. cmd/bucket-replication.go

    			if p.ActiveWorkers() < maxWorkers {
    				p.mu.RLock()
    				workers := min(len(p.workers)+1, maxWorkers)
    				existing := len(p.workers)
    				p.mu.RUnlock()
    				p.ResizeWorkers(workers, existing)
    			}
    			maxMRFWorkers := min(maxWorkers, MRFWorkerMaxLimit)
    			if p.ActiveMRFWorkers() < maxMRFWorkers {
    				p.mu.RLock()
    				workers := min(p.mrfWorkerSize+1, maxMRFWorkers)
    				p.mu.RUnlock()
    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)
  7. cmd/iam-etcd-store.go

    	return &IAMEtcdStore{
    		iamCache:     newIamCache(),
    		client:       client,
    		usersSysType: usersSysType,
    	}
    }
    
    func (ies *IAMEtcdStore) rlock() *iamCache {
    	ies.RLock()
    	return ies.iamCache
    }
    
    func (ies *IAMEtcdStore) runlock() {
    	ies.RUnlock()
    }
    
    func (ies *IAMEtcdStore) lock() *iamCache {
    	ies.Lock()
    	return ies.iamCache
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 13.6K bytes
    - Viewed (0)
  8. internal/logger/target/http/http.go

    func (h *Target) IsOnline(ctx context.Context) bool {
    	return atomic.LoadInt32(&h.status) == statusOnline
    }
    
    // Stats returns the target statistics.
    func (h *Target) Stats() types.TargetStats {
    	h.logChMu.RLock()
    	queueLength := len(h.logCh)
    	h.logChMu.RUnlock()
    	stats := types.TargetStats{
    		TotalMessages:  atomic.LoadInt64(&h.totalMessages),
    		FailedMessages: atomic.LoadInt64(&h.failedMessages),
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Mar 25 16:44:20 GMT 2024
    - 14.9K bytes
    - Viewed (0)
  9. cmd/erasure-server-pool-decom.go

    }
    
    func (z *erasureServerPools) decommissionInBackground(ctx context.Context, idx int) error {
    	pool := z.serverPools[idx]
    	z.poolMetaMutex.RLock()
    	pending := z.poolMeta.PendingBuckets(idx)
    	z.poolMetaMutex.RUnlock()
    
    	for _, bucket := range pending {
    		z.poolMetaMutex.RLock()
    		isDecommissioned := z.poolMeta.isBucketDecommissioned(idx, bucket.String())
    		z.poolMetaMutex.RUnlock()
    		if isDecommissioned {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 15:18:21 GMT 2024
    - 41.5K bytes
    - Viewed (1)
  10. internal/config/drive/drive.go

    	configLk.Lock()
    	defer configLk.Unlock()
    	c.MaxTimeout = getMaxTimeout(new.MaxTimeout)
    	return nil
    }
    
    // GetMaxTimeout - returns the max timeout value.
    func (c *Config) GetMaxTimeout() time.Duration {
    	configLk.RLock()
    	defer configLk.RUnlock()
    
    	return getMaxTimeout(c.MaxTimeout)
    }
    
    // LookupConfig - lookup config and override with valid environment settings if any.
    func LookupConfig(kvs config.KVS) (cfg Config, err error) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:10:30 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top