remove replication stats from data usage cache (#20524)

This is no longer needed since historical stats are not maintained anymore.
This commit is contained in:
Poorna
2024-10-04 15:23:33 -07:00
committed by GitHub
parent cbfe9de3e7
commit 28322124e2
5 changed files with 74 additions and 1922 deletions

View File

@@ -587,17 +587,6 @@ func TestDataUsageCacheSerialize(t *testing.T) {
t.Fatal(err)
}
e := want.find("abucket/dir2")
e.ReplicationStats = &replicationAllStats{
Targets: map[string]replicationStats{
"arn": {
PendingSize: 1,
ReplicatedSize: 2,
FailedSize: 3,
FailedCount: 5,
PendingCount: 6,
},
},
}
want.replace("abucket/dir2", "", *e)
var buf bytes.Buffer
err = want.serializeTo(&buf)