persist replication stats with leader lock (#16282)

This commit is contained in:
Poorna
2022-12-22 14:25:13 -08:00
committed by GitHub
parent 48152a56ac
commit de0b43de32
3 changed files with 16 additions and 24 deletions

View File

@@ -797,9 +797,8 @@ func (ri ReplicateObjectInfo) ToMRFEntry() MRFReplicateEntry {
}
}
func getReplicationStatsPath(nodeName string) string {
nodeStr := strings.ReplaceAll(nodeName, ":", "_")
return bucketMetaPrefix + SlashSeparator + replicationDir + SlashSeparator + nodeStr + ".stats"
func getReplicationStatsPath() string {
return bucketMetaPrefix + SlashSeparator + replicationDir + SlashSeparator + "replication.stats"
}
const (