Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 29 for Ch (0.12 sec)

  1. cmd/peer-rest-server.go

    	if err != nil {
    		mask = int(madmin.LogMaskAll)
    	}
    	ch := make(chan log.Info, 1000)
    	err = globalConsoleSys.Subscribe(ch, ctx.Done(), "", 0, madmin.LogMask(mask), nil)
    	if err != nil {
    		return grid.NewRemoteErr(err)
    	}
    	var buf bytes.Buffer
    	enc := json.NewEncoder(&buf)
    	for {
    		select {
    		case entry, ok := <-ch:
    			if !ok {
    				return grid.NewRemoteErrString("console log channel closed")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  2. cmd/erasure-server-pool.go

    			case v := <-updateCloser:
    				update()
    				xioutil.SafeClose(v)
    				return
    			case <-updateTicker.C:
    				update()
    			}
    		}
    	}()
    
    	wg.Wait()
    	ch := make(chan struct{})
    	select {
    	case updateCloser <- ch:
    		<-ch
    	case <-ctx.Done():
    		mu.Lock()
    		if firstErr == nil {
    			firstErr = ctx.Err()
    		}
    		defer mu.Unlock()
    	}
    	return firstErr
    }
    
    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)
  3. cmd/metrics-resource.go

    	metricsGroups []*MetricsGroupV2
    	desc          *prometheus.Desc
    }
    
    // Describe sends the super-set of all possible descriptors of metrics
    func (c *minioResourceCollector) Describe(ch chan<- *prometheus.Desc) {
    	ch <- c.desc
    }
    
    // Collect is called by the Prometheus registry when collecting metrics.
    func (c *minioResourceCollector) Collect(out chan<- prometheus.Metric) {
    	var wg sync.WaitGroup
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 23:56:12 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  4. cmd/iam.go

    	// Watch for IAM config changes for iamStorageWatcher.
    	watcher, isWatcher := sys.store.IAMStorageAPI.(iamStorageWatcher)
    	if isWatcher {
    		go func() {
    			ch := watcher.watch(ctx, iamConfigPrefix)
    			for event := range ch {
    				if err := sys.loadWatchedEvent(ctx, event); err != nil {
    					// we simply log errors
    					iamLogIf(ctx, fmt.Errorf("Failure in loading watch event: %v", err), logger.WarningKind)
    				}
    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)
  5. cmd/bucket-replication.go

    		}
    		return
    	}
    
    	var ch, healCh chan<- ReplicationWorkerOperation
    	switch ri.OpType {
    	case replication.HealReplicationType, replication.ExistingObjectReplicationType:
    		ch = p.mrfReplicaCh
    		healCh = p.getWorkerCh(ri.Name, ri.Bucket, ri.Size)
    	default:
    		ch = p.getWorkerCh(ri.Name, ri.Bucket, ri.Size)
    	}
    	if ch == nil && healCh == nil {
    		return
    	}
    
    	select {
    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)
  6. internal/dsync/drwmutex.go

    		case <-ctx.Done():
    			// Refreshing is canceled
    			return false, ctx.Err()
    		}
    		if done {
    			break
    		}
    	}
    
    	// We may have some unused results in ch, release them async.
    	go func() {
    		wg.Wait()
    		xioutil.SafeClose(ch)
    		for range ch {
    		}
    	}()
    
    	noQuorum := lockNotFound > len(restClnts)-quorum
    	return noQuorum, nil
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 19.7K bytes
    - Viewed (0)
  7. cmd/testdata/undeleteable-object.tgz

    ¨CSumAlgo ¨PartNums‘ ©PartETagsÀ©PartSizes‘Ñ ŠªPartASizes‘Ñ Š¤SizeÑ Š¥MTimeÓ É žÕô §MetaSys ¼x-minio-internal-inline-dataÄ true§MetaUsr‚¤etagÙ 481841022d5df9056cb9¬content-type¸application/octet-stream¡v Φ“í ¤nullÄ4þãšh2ÙQTÑÞ´’· Ú ø@-•)kë [Šå Íp" Â¥Cache ˆ¢ch ¢sz ¢os multisitea/data/disterasure/xl5/.minio.sys/buckets/bucket/.usage-cache.bin/xl.meta XL2 Æ } Ä$•Ä Ó É ž³í Ä -˜•K Å Qƒ¤Type ¥V2ObjÞ ¢IDÄ ¤DDirÄ ï/b‘ ·C¾—ÕÌx3Áà ¦EcAlgo £EcM £EcN §EcBSizeÒ §EcIndex ¦EcDistœ ¨CSumAlgo ¨PartNums‘ ©PartETagsÀ©PartSizes‘Ñ...
    Others
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 8.7M bytes
    - Viewed (0)
  8. cmd/service.go

    	// Close when we reach 0
    	globalServiceFreezeCnt--
    	if globalServiceFreezeCnt <= 0 {
    		// Set to a nil channel.
    		var _ch chan struct{}
    		if val := globalServiceFreeze.Swap(_ch); val != nil {
    			if ch, ok := val.(chan struct{}); ok && ch != nil {
    				// Close previous non-nil channel.
    				xioutil.SafeClose(ch)
    			}
    		}
    		globalServiceFreezeCnt = 0 // Don't risk going negative.
    	}
    	globalServiceFreezeMu.Unlock()
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Feb 28 07:02:14 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. cmd/data-usage-cache.go

    }
    
    // Create a clone of the entry.
    func (e dataUsageEntry) clone() dataUsageEntry {
    	// We operate on a copy from the receiver.
    	if e.Children != nil {
    		ch := make(dataUsageHashMap, len(e.Children))
    		for k, v := range e.Children {
    			ch[k] = v
    		}
    		e.Children = ch
    	}
    	if e.ReplicationStats != nil {
    		// Clone ReplicationStats
    		e.ReplicationStats = e.ReplicationStats.clone()
    	}
    	if e.AllTierStats != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 41.4K bytes
    - Viewed (1)
  10. cmd/notification.go

    					if !ok {
    						return
    					}
    					select {
    					case ch <- m:
    					case <-ctx.Done():
    						return
    					}
    				case <-ctx.Done():
    					return
    				}
    			}
    		}(ctx, peerChannels[index], &wg)
    	}
    	go func(wg *sync.WaitGroup, ch chan MetricV2) {
    		wg.Wait()
    		xioutil.SafeClose(ch)
    	}(&wg, ch)
    	return ch
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
Back to top