Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 393 for Leifer (0.15 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/metacache-manager.go

    	// Start saver when object layer is ready.
    	go func() {
    		objAPI := newObjectLayerFn()
    		for objAPI == nil {
    			time.Sleep(time.Second)
    			objAPI = newObjectLayerFn()
    		}
    
    		t := time.NewTicker(time.Minute)
    		defer t.Stop()
    
    		var exit bool
    		for !exit {
    			select {
    			case <-t.C:
    			case <-GlobalContext.Done():
    				exit = true
    			}
    			m.mu.RLock()
    			for _, v := range m.buckets {
    				if !exit {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 5.2K bytes
    - Viewed (0)
  3. cmd/server-main_test.go

    func TestNewObjectLayer(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	// Tests for ErasureSD object layer.
    	nDisks := 1
    	disks, err := getRandomDisks(nDisks)
    	if err != nil {
    		t.Fatal("Failed to create drives for the backend")
    	}
    	defer removeRoots(disks)
    
    	obj, err := newObjectLayer(ctx, mustGetPoolEndpoints(0, disks...))
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Dec 07 09:33:56 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  4. internal/grid/connection.go

    		defer fmt.Println(c.Local, "->", c.Remote, "WaitForConnect done")
    	}
    	c.connChange.L.Lock()
    	if atomic.LoadUint32((*uint32)(&c.state)) == StateConnected {
    		c.connChange.L.Unlock()
    		// Happy path.
    		return nil
    	}
    	ctx, cancel := context.WithCancel(ctx)
    	defer cancel()
    	changed := make(chan State, 1)
    	go func() {
    		defer xioutil.SafeClose(changed)
    		for {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 42.6K bytes
    - Viewed (0)
  5. internal/dsync/dsync_test.go

    		defer lockServers[i].setResponseDelay(0)
    	}
    
    	unlockReturned := make(chan struct{}, 1)
    	go func() {
    		ctx, cancel := context.WithTimeout(context.Background(), 500*time.Millisecond)
    		defer cancel()
    		dm.Unlock(ctx)
    		unlockReturned <- struct{}{}
    	}()
    
    	timer := time.NewTimer(2 * testDrwMutexUnlockCallTimeout)
    	defer timer.Stop()
    
    	select {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Dec 24 03:49:07 GMT 2022
    - 11K bytes
    - Viewed (0)
  6. cni/pkg/nodeagent/server_test.go

    	if f.testWG != nil {
    		defer f.testWG.Done()
    	}
    	args := f.Called(ctx, pod, podIPs, netNs)
    	return args.Error(0)
    }
    
    func (f *fakeServer) RemovePodFromMesh(ctx context.Context, pod *corev1.Pod) error {
    	if f.testWG != nil {
    		defer f.testWG.Done()
    	}
    	args := f.Called(ctx, pod)
    	return args.Error(0)
    }
    
    Go
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  7. internal/config/subnet/config.go

    // Registered indicates if cluster is registered or not
    func (c *Config) Registered() bool {
    	configLock.RLock()
    	defer configLock.RUnlock()
    
    	return len(c.APIKey) > 0
    }
    
    // ApplyEnv - applies the current subnet config to Console UI specific environment variables.
    func (c *Config) ApplyEnv() {
    	configLock.RLock()
    	defer configLock.RUnlock()
    
    	if c.License != "" {
    		os.Setenv("CONSOLE_SUBNET_LICENSE", c.License)
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Nov 24 17:59:35 GMT 2023
    - 3.8K bytes
    - Viewed (0)
  8. cmd/erasure-healing-common_test.go

    func TestListOnlineDisks(t *testing.T) {
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    
    	obj, disks, err := prepareErasure16(ctx)
    	if err != nil {
    		t.Fatalf("Prepare Erasure backend failed - %v", err)
    	}
    	setObjectLayer(obj)
    	defer obj.Shutdown(context.Background())
    	defer removeRoots(disks)
    
    	type tamperKind int
    	const (
    		noTamper tamperKind = iota
    		deletePart
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 23K bytes
    - Viewed (1)
  9. internal/config/storageclass/storage-class.go

    func (sCfg *Config) AvailabilityOptimized() bool {
    	ConfigLock.RLock()
    	defer ConfigLock.RUnlock()
    	if !sCfg.initialized {
    		return true
    	}
    	return sCfg.Optimize == "availability" || sCfg.Optimize == ""
    }
    
    // Update update storage-class with new config
    func (sCfg *Config) Update(newCfg Config) {
    	ConfigLock.Lock()
    	defer ConfigLock.Unlock()
    	sCfg.RRS = newCfg.RRS
    	sCfg.Standard = newCfg.Standard
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 11.8K bytes
    - Viewed (0)
  10. internal/bucket/bandwidth/measurement.go

    // updateExponentialMovingAverage processes the measurements captured so far.
    func (m *bucketMeasurement) updateExponentialMovingAverage(endTime time.Time) {
    	// Calculate aggregate avg bandwidth and exp window avg
    	m.lock.Lock()
    	defer func() {
    		m.startTime = endTime
    		m.lock.Unlock()
    	}()
    
    	if m.startTime.IsZero() {
    		return
    	}
    
    	if endTime.Before(m.startTime) {
    		return
    	}
    
    	duration := endTime.Sub(m.startTime)
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Jun 03 20:41:51 GMT 2023
    - 2.9K bytes
    - Viewed (0)
Back to top