replication: Fix replica stats during crawling (#13499)

Also show replica stats with an ARN in Prometheus output.
This commit is contained in:
Anis Elleuch
2021-10-23 03:13:50 +01:00
committed by GitHub
parent 29d885b40f
commit 20761e053e
3 changed files with 33 additions and 26 deletions

View File

@@ -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 {