mirror of
https://github.com/minio/minio.git
synced 2025-11-07 21:02:58 -05:00
replication: Fix replica stats during crawling (#13499)
Also show replica stats with an ARN in Prometheus output.
This commit is contained in:
@@ -456,8 +456,8 @@ func getLatestReplicationStats(bucket string, u BucketUsageInfo) (s BucketReplic
|
||||
|
||||
// add initial usage stat to cluster stats
|
||||
usageStat := globalReplicationStats.GetInitialUsage(bucket)
|
||||
totReplicaSize += usageStat.ReplicaSize
|
||||
if usageStat.Stats != nil {
|
||||
totReplicaSize += usageStat.ReplicaSize
|
||||
for arn, stat := range usageStat.Stats {
|
||||
st := stats[arn]
|
||||
if st == nil {
|
||||
|
||||
Reference in New Issue
Block a user