Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 70 for ok (0.13 sec)

  1. cmd/bucket-targets.go

    	sys.hMutex.RLock()
    	defer sys.hMutex.RUnlock()
    	if h, ok := sys.hc[ep.Host]; ok {
    		return !h.Online
    	}
    	go sys.initHC(ep)
    	return false
    }
    
    // markOffline sets endpoint to offline if network i/o timeout seen.
    func (sys *BucketTargetSys) markOffline(ep *url.URL) {
    	sys.hMutex.Lock()
    	defer sys.hMutex.Unlock()
    	if h, ok := sys.hc[ep.Host]; ok {
    		h.Online = false
    		sys.hc[ep.Host] = h
    	}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 20.9K bytes
    - Viewed (0)
  2. cmd/iam.go

    	case <-sys.configLoaded:
    	default:
    		sys.store.LoadUser(ctx, accessKey)
    		loadUserCalled = true
    	}
    
    	u, ok = sys.store.GetUser(accessKey)
    	if !ok && !loadUserCalled {
    		sys.store.LoadUser(ctx, accessKey)
    		u, ok = sys.store.GetUser(accessKey)
    	}
    
    	return u, ok && u.Credentials.IsValid()
    }
    
    // Notify all other MinIO peers to load group.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  3. cmd/object-handlers.go

    		}
    
    	}
    
    	if _, ok := opts.ObjectAttributes[xhttp.ETag]; ok {
    		OA.ETag = objInfo.ETag
    	}
    
    	if _, ok := opts.ObjectAttributes[xhttp.ObjectSize]; ok {
    		OA.ObjectSize, _ = objInfo.GetActualSize()
    	}
    
    	if _, ok := opts.ObjectAttributes[xhttp.StorageClass]; ok {
    		OA.StorageClass = objInfo.StorageClass
    	}
    
    	objInfo.decryptPartsChecksums()
    
    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)
  4. cmd/erasure-server-pool.go

    		}
    		// let's the rest shutdown
    	}
    	return nil
    }
    
    // Legacy returns 'true' if distribution algo is CRCMOD
    func (z *erasureServerPools) Legacy() (ok bool) {
    	ok = true
    	for _, set := range z.serverPools {
    		ok = ok && set.Legacy()
    	}
    	return ok
    }
    
    func (z *erasureServerPools) BackendInfo() (b madmin.BackendInfo) {
    	b.Type = madmin.Erasure
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  5. cmd/object-api-errors.go

    		apiErr := InsufficientReadQuorum{}
    		if len(params) >= 1 {
    			apiErr.Bucket = params[0]
    		}
    		if len(params) >= 2 {
    			apiErr.Object = decodeDirObject(params[1])
    		}
    		if v, ok := oerr.(InsufficientReadQuorum); ok {
    			apiErr.Type = v.Type
    		}
    		return apiErr
    	case errErasureWriteQuorum.Error():
    		apiErr := InsufficientWriteQuorum{}
    		if len(params) >= 1 {
    			apiErr.Bucket = params[0]
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  6. cmd/mrf.go

    // corresponding erasure set
    func (m *mrfState) healRoutine(z *erasureServerPools) {
    	for {
    		select {
    		case <-GlobalContext.Done():
    			return
    		case u, ok := <-m.opCh:
    			if !ok {
    				return
    			}
    
    			// We might land at .metacache, .trash, .multipart
    			// no need to heal them skip, only when bucket
    			// is '.minio.sys'
    			if u.bucket == minioMetaBucket {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 17:15:52 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  7. cmd/xl-storage-disk-id-check.go

    // that is not io.EOF.
    func diskHealthCheckOK(ctx context.Context, err error) bool {
    	// Check if context has a disk health check.
    	tracker, ok := ctx.Value(healthDiskCtxKey{}).(*healthDiskCtxValue)
    	if !ok {
    		// No tracker, return
    		return err == nil || errors.Is(err, io.EOF)
    	}
    	if err == nil || errors.Is(err, io.EOF) {
    		tracker.logSuccess()
    		return true
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 33K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool-rebalance.go

    func (z *erasureServerPools) updateRebalanceStats(ctx context.Context) error {
    	var ok bool
    	for i := range z.serverPools {
    		if z.findIndex(i) == -1 {
    			// Also ensure to initialize rebalanceStats to indicate
    			// its a new pool that can receive rebalanced data.
    			z.rebalMeta.PoolStats = append(z.rebalMeta.PoolStats, &rebalanceStats{})
    			ok = true
    		}
    	}
    	if ok {
    		lock := z.serverPools[0].NewNSLock(minioMetaBucket, rebalMetaName)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 19:29:28 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. cmd/metrics-v2.go

    			for k, v := range usage.ObjectSizesHistogram {
    				v1, ok := clusterObjectSizesHistogram[k]
    				if !ok {
    					clusterObjectSizesHistogram[k] = v
    				} else {
    					v1 += v
    					clusterObjectSizesHistogram[k] = v1
    				}
    			}
    			for k, v := range usage.ObjectVersionsHistogram {
    				v1, ok := clusterVersionsHistogram[k]
    				if !ok {
    					clusterVersionsHistogram[k] = v
    				} else {
    					v1 += v
    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)
  10. cmd/erasure-common.go

    			Prefix: req.Prefix,
    			File:   wantFile,
    		}
    		for i := range resps {
    			if disks[i] == nil {
    				continue
    			}
    			select {
    			case <-ctx.Done():
    			case gotFile, ok := <-resps[i]:
    				if !ok {
    					continue
    				}
    				if gotFile.Error != "" || !gotFile.Exists {
    					continue
    				}
    				if gotFile.File != wantFile || gotFile.Bucket != req.Bucket || gotFile.Prefix != req.Prefix {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 4.6K bytes
    - Viewed (0)
Back to top