Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for pickers (0.18 sec)

  1. cmd/tier-journal.go

    	if err != nil {
    		return err
    	}
    	return nil
    }
    
    func (jd *tierDiskJournal) deletePending(ctx context.Context) {
    	ticker := time.NewTicker(30 * time.Minute)
    	defer ticker.Stop()
    	for {
    		select {
    		case <-ticker.C:
    			jd.WalkEntries(ctx, deleteObjectFromRemoteTier)
    
    		case <-ctx.Done():
    			jd.Close()
    			return
    		}
    	}
    }
    
    Go
    - Registered: Sun Feb 25 19:28:16 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 7.4K bytes
    - Viewed (0)
  2. cmd/data-usage_test.go

    			size: 200,
    		},
    	}
    	createUsageTestFiles(t, base, bucket, files)
    	err = os.RemoveAll(filepath.Join(base, bucket, "dir1/dira/dirasub/dcfile"))
    	if err != nil {
    		t.Fatal(err)
    	}
    	// Changed dir must be picked up in this many cycles.
    	for i := 0; i < dataUsageUpdateDirCycles; i++ {
    		got, err = scanDataFolder(context.Background(), nil, base, got, getSize, 0, weSleep)
    		got.Info.NextCycle++
    		if err != nil {
    			t.Fatal(err)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Mar 27 15:10:40 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  3. internal/s3select/message.go

    		return false
    	}
    
    	writer.writer.(http.Flusher).Flush()
    	return true
    }
    
    func (writer *messageWriter) start() {
    	keepAliveTicker := time.NewTicker(1 * time.Second)
    	var progressTicker *time.Ticker
    	var progressTickerC <-chan time.Time
    	if writer.getProgressFunc != nil {
    		progressTicker = time.NewTicker(1 * time.Minute)
    		progressTickerC = progressTicker.C
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 30 15:26:43 GMT 2022
    - 15.2K bytes
    - Viewed (0)
  4. cmd/iam.go

    				}
    			}
    		}()
    	}
    
    	r := rand.New(rand.NewSource(time.Now().UnixNano()))
    
    	// Calculate the waitInterval between periodic refreshes so that each server
    	// independently picks a (uniformly distributed) random time in an interval
    	// of size = baseInterval.
    	//
    	// For example:
    	//
    	//    - if baseInterval=10s, then 5s <= waitInterval() < 15s
    	//
    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/storage-rest-server.go

    			} else {
    				write([]byte{0})
    			}
    			xioutil.SafeClose(doneCh)
    			return
    		}
    		defer xioutil.SafeClose(doneCh)
    		// Initiate ticker after body has been read.
    		ticker := time.NewTicker(time.Second * 10)
    		defer ticker.Stop()
    
    		for {
    			select {
    			case <-ticker.C:
    				// The done() might have been called
    				// concurrently, check for it before we
    				// write the filler byte.
    				select {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 44.8K bytes
    - Viewed (0)
  6. cmd/site-replication-metrics.go

    	ReplicaSize int64 `json:"replicaSize"`
    	// Total Replica received
    	ReplicaCount int64                `json:"replicaCount"`
    	M            map[string]*SRStatus `json:"srStatusMap"`
    
    	movingAvgTicker *time.Ticker // Ticker for calculating moving averages
    	lock            sync.RWMutex // mutex for srStats
    }
    
    // SRStatus has replication stats at deployment level
    type SRStatus struct {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  7. internal/grid/muxclient.go

    		if m.respErr.Load() == nil {
    			xioutil.SafeClose(respHandler)
    		}
    	}()
    	var pingTimer <-chan time.Time
    	if m.deadline == 0 || m.deadline > clientPingInterval {
    		ticker := time.NewTicker(clientPingInterval)
    		defer ticker.Stop()
    		pingTimer = ticker.C
    		atomic.StoreInt64(&m.LastPong, time.Now().Unix())
    	}
    	defer m.parent.deleteMux(false, m.MuxID)
    	for {
    		select {
    		case <-m.ctx.Done():
    			if debugPrint {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  8. cmd/bucket-replication-stats.go

    	mostRecentStatsMu sync.Mutex // mutex for mostRecentStats
    
    	wlock sync.RWMutex // mutex for active workers
    
    	movingAvgTicker *time.Ticker // Ticker for calculating moving averages
    	wTimer          *time.Ticker // ticker for calculating active workers
    	qTimer          *time.Ticker // ticker for calculating queue stats
    }
    
    func (r *ReplicationStats) trackEWMA() {
    	for {
    		select {
    		case <-r.movingAvgTicker.C:
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  9. cmd/benchmark-utils_test.go

    }
    
    // randomly picks a character and returns its equivalent byte array.
    func getRandomByte() []byte {
    	const letterBytes = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
    	// seeding the random number generator.
    	rand.Seed(UTCNow().UnixNano())
    	// pick a character randomly.
    	return []byte{letterBytes[rand.Intn(len(letterBytes))]}
    }
    
    // picks a random byte and repeats it to size bytes.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Dec 23 15:46:00 GMT 2022
    - 8.2K bytes
    - Viewed (0)
  10. cmd/namespace-lock.go

    // volume, path and operation ID.
    func (n *nsLockMap) NewNSLock(lockers func() ([]dsync.NetLocker, string), volume string, paths ...string) RWLocker {
    	opsID := mustGetUUID()
    	if n.isDistErasure {
    		drwmutex := dsync.NewDRWMutex(&dsync.Dsync{
    			GetLockers: lockers,
    			Timeouts:   dsync.DefaultTimeouts,
    		}, pathsJoinPrefix(volume, paths...)...)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jun 05 23:56:35 GMT 2023
    - 9.2K bytes
    - Viewed (0)
Back to top