Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for newBucketReplicationStats (0.2 sec)

  1. cmd/bucket-replication-stats.go

    func (r *ReplicationStats) UpdateReplicaStat(bucket string, n int64) {
    	if r == nil {
    		return
    	}
    
    	r.Lock()
    	defer r.Unlock()
    	bs, ok := r.Cache[bucket]
    	if !ok {
    		bs = newBucketReplicationStats()
    	}
    	bs.ReplicaSize += n
    	bs.ReplicaCount++
    	r.Cache[bucket] = bs
    	r.srUpdateReplicaStat(n)
    }
    
    func (r *ReplicationStats) srUpdateReplicaStat(sz int64) {
    	if r == nil {
    		return
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 13.4K bytes
    - Viewed (0)
  2. cmd/bucket-stats.go

    	PendingCount int64 `json:"pendingReplicationCount"`
    	// Total number of failed operations including metadata updates
    	FailedCount int64 `json:"failedReplicationCount"`
    }
    
    func newBucketReplicationStats() *BucketReplicationStats {
    	return &BucketReplicationStats{
    		Stats: make(map[string]*BucketReplicationStat),
    	}
    }
    
    // Empty returns true if there are no target stats
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 13.1K bytes
    - Viewed (0)
Back to top